Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I want to split this string in four words, using '-' as a separator.
cString = "HOW-ARE-YOU-?"
cSeparator = "-"
nWords = occurs(cSeparator, cString) + 1
dimension aWords(nWords)
= split()
display memo like aWords
procedure split
nWordNo = 1
do while nWordNo < nWords
nPos = at(cSeparator, cString)
aWords(nWordNo) = left(cString, nPos - 1)
cString = substr(cString, nPos + 1)
nWordNo = nWordNo + 1
enddo
aWords(nWordNo) = cString