Skip to content

Set splitter

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.

SetSplitter(Byval Splitter as String) as Boolean

Splitter (String)

Character to be used when the array is returned.

Boolean. Returns true if the character is set. Otherwise false.

Dim oCMS
Dim x
Set oCMS = CreateObject("CapaInstaller.SDK")
x=oCMS.SetSplitter (",")