REM FN_split(A$, d$, RETURN a$()) REM REM Split a string at specified delimiter: REM A$ is the string to be split REM d$ is the delimiter at which to split REM a$() is an array to receive the parts (created if necessary) REM The returned value is the number of array elements written INSTALL @lib$+"STRINGLIB" fullname$="John Paul Smith" result=FN_split(fullname$, " ", parts$()) FOR i=0 TO result-1 PRINT parts$(i) NEXT i END
|
|