Separate a command string in a OSC message to root and the rest.

Namespace: ExpSuite
Assembly: FrameWork (in FrameWork.exe) Version: 1.0.0.0

Syntax

Visual Basic
Public Shared Sub SeparateCommand ( _
	ByRef szCmd As String, _
	ByRef szRoot As String _
)

Parameters

szCmd
Type: System..::..String%
Command. The root szRoot will be separated and the rest of the command will be returned in szCmd.
szRoot
Type: System..::..String%
Root of command szCmd.

Remarks

Examples

Example:
szCmd="ROOT/CMD1/CMD2"

SeparateCommand(szCmd,szRoot)

szCmd="CMD1/CMD2"

szRoot="ROOT"

SeparateCommand(szCmd,szRoot)

szCmd="CMD2"

szRoot="CMD1"

SeparateCommand(szCmd,szRoot)

szCmd="CMD1"

szRoot=""

See Also