lcDelimiter = ",; " && possible delimiters =StrToArray(@laBidon, lcString, lcDelimiter)
*-- creates the following array: *-- LABIDON Pub A *-- ( 1) C "123" *-- ( 2) C "22" *-- ( 3) C "44" *-- ( 4) C "1212" *-- ( 5) C "21412424" *-- ( 6) C "12.5" *-- ( 7) C "123.4"
Example 2:
lcDelimiter = ",;. " && possible delimiters =StrToArray(@laBidon, lcString, lcDelimiter)
*-- creates 9 fields since the decimal point is also *-- considered as a delimiter:
*-- LABIDON Pub A *-- ( 1) C "123" *-- ( 2) C "22" *-- ( 3) C "44" *-- ( 4) C "1212" *-- ( 5) C "21412424" *-- ( 6) C "12" *-- ( 7) C "5" *-- ( 8) C "123" *-- ( 9) C "4"
Here's the function:
************************************************ FUNCTION StrToArray ************************************************