Michael Clease
28-05-2007, 14:35
' Usage of the SPLIT Keyword example
'
' Return Number the number of tokens found.
'
' Written by Abraxas
DIM sMainString AS STRING VALUE "THIS,IS,MY,STRING" '
DIM ArrayName() AS DWORD value 0
DIM Delimiter AS STRING VALUE "," ' Character used to seperate
dim n as DWORD Value 0
DIm sMsg AS STRING
sMsg = "SMainString = " & sMainString & $CRLF & $CRLF
sMsg += "Delimiter = " & Delimiter & $CRLF & $CRLF
sMsg += "Tokens found = " & SPLIT(sMainString, Delimiter, ArrayName)
MSGBOX 0, sMsg
'
' Return Number the number of tokens found.
'
' Written by Abraxas
DIM sMainString AS STRING VALUE "THIS,IS,MY,STRING" '
DIM ArrayName() AS DWORD value 0
DIM Delimiter AS STRING VALUE "," ' Character used to seperate
dim n as DWORD Value 0
DIm sMsg AS STRING
sMsg = "SMainString = " & sMainString & $CRLF & $CRLF
sMsg += "Delimiter = " & Delimiter & $CRLF & $CRLF
sMsg += "Tokens found = " & SPLIT(sMainString, Delimiter, ArrayName)
MSGBOX 0, sMsg