One way is to use a different character as the separator...
Code:
DEFINE VARIABLE vcSplCharStr AS CHARACTER NO-UNDO INIT '\}/}:}*}?}"}<}>}|}&},'.
DEFINE VARIABLE lvi AS INTEGER NO-UNDO.
DO lvi = 1 TO NUM-ENTRIES(vcSplCharStr,"}"):
MESSAGE ENTRY(lvi,vcSplCharStr,"}")
VIEW-AS ALERT-BOX INFO BUTTONS OK.
END.
Chances are you don't really need the separator characters if every entry is just a single character. The virtue of ENTRY is that the entries can be of different size.
ENTRY uses comma as default. And spaces make life hard from experience. Tamhas is saying you don't need any delimiter for the situation above as you can just do substring(n,1) for example to get the nth term.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.