Set splitter
Description
Section titled “Description”Defines the array split character. Functions that return an ArrayList, or a delimited string, separate the values in each element with this character. The default character is |.
The character is saved in the registry of the computer (under HKEY_LOCAL_MACHINE). This means that:
- The setting applies to all scripts that use the SDK on that computer, also after the script ends. To go back to the default, set the character to
|again. - The account that runs the script must have permission to write to
HKEY_LOCAL_MACHINE, for example a local administrator. - The SDK reads the character the first time a function that connects to the database is called on an SDK object. Call SetSplitter before any other function, or create a new SDK object after you call it.
Syntax
Section titled “Syntax”SetSplitter(Byval Splitter as String) as Boolean
Parameters
Section titled “Parameters”Splitter (String)
Character to be used when the array is returned.
Return value
Section titled “Return value”Boolean. Returns true if the character is set. Otherwise false.
Example
Section titled “Example”Dim oCMSDim x
Set oCMS = CreateObject("CapaInstaller.SDK")x=oCMS.SetSplitter (",")