STRTOKEN$ function
Purpose:
STRTOKEN$
returns, from a source string,
a substring determined by the sequential position of a token.
Syntax: RetStr$ = STRTOKEN$(Source$, TokChr$, Token_Number%) Parameters:
|
Remarks: Source$, TokChr$, and Token_Number are not modified by this function.
Example:
DIM a$, j a$ = "Bob,Barker,The Price Is Right,Hollywood,California,Come On Down!" DO IF STRTOKEN$(a$, "," , ++j) > "" THEN PRINT j, " ", STRTOKEN$(a$, "," , j) ELSE EXIT LOOP END IF LOOP
Result:
1 Bob 2 Barker 3 The Price Is Right 4 Hollywood 5 California 6 Come On Down!