David Webber
09-05-2007, 04:50 AM
Is there any way to get the last character of a string stored in a variable?
If not, could we have one in a future build?
I can foresee two needs for this (of which my current one is the second).
1. If you get a folder name from somewhere in the registry, it may or may not end in '\' It would be nice to know before appending things. (People are not always consistent about this.)
2. If you want to read a .chm file on another computer on your LAN these days, you may need to add its location to a list of allowed locations at
[HKLM\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestricti ons]
UrlAllowList=....
The value of the key name "UrlAllowList" is (more or less) a list of places separated by semicolons.
I can use the If-Does-not-contain choice to detect whether mine is there (but it would be easier if case insensitive and case sensitive options were available). If it is not there, I can append a semicolon and append my entry, and reset the registry variable.
But I suspect others are not consistent about whether or not they leave a semicolon on the end of the existing registry key, and it would be nice to test for this.
(Do I get a prize for the most obscure usage of SetupBuilder ever:) )
Dave
If not, could we have one in a future build?
I can foresee two needs for this (of which my current one is the second).
1. If you get a folder name from somewhere in the registry, it may or may not end in '\' It would be nice to know before appending things. (People are not always consistent about this.)
2. If you want to read a .chm file on another computer on your LAN these days, you may need to add its location to a list of allowed locations at
[HKLM\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestricti ons]
UrlAllowList=....
The value of the key name "UrlAllowList" is (more or less) a list of places separated by semicolons.
I can use the If-Does-not-contain choice to detect whether mine is there (but it would be easier if case insensitive and case sensitive options were available). If it is not there, I can append a semicolon and append my entry, and reset the registry variable.
But I suspect others are not consistent about whether or not they leave a semicolon on the end of the existing registry key, and it would be nice to test for this.
(Do I get a prize for the most obscure usage of SetupBuilder ever:) )
Dave