Variables | |
The DigaSQL.DLL provides a way to use variables in the registry. A variable is defined as a value in this key and can be used in the data of every string value. Whenever a program queries or enumerates string data which contains a variable, it will not see the name of the variable but the content of it. Normally only the Admin program will show the data with the variable names. Attention: A variable name must not contain spaces or any 'strange' character, only use letters, numbers and the underscore. To use a variable you must enclose its name by two percent characters. By default the DLL will first try to find a variable in the local registry and if it cannot replace it, the global registry is searched too. You can change this behaviour if you add a location list behind the variable name but before the closing percent character. The location list must be enclosed in normal parentheses and is a comma or space separated list of the keywords: "Global", "Local" and "User". (Hint: It is sufficient to write the first letter.) Here we have an example: if you want to specify a directory for all DigaSystem programs you can define a variable "DigasDir" and use it in the "Programs" key like this: "Admin=%DigasDir(G,L)%\Admin.exe". Hint: Variable definitions can contain variables themselves, though it is not recommended to use this feature because the settings might be easily confused. |