September 2017 Update

This commit is contained in:
Ingy döt Net 2017-09-23 10:01:46 +02:00
parent bba7bfd280
commit ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions

View file

@ -1,8 +1,13 @@
INSTALL @lib$+"STRINGLIB"
' Tokenize a string
OPTION BASE 1
text$ = "Hello,How,Are,You,Today"
n% = FN_split(text$, ",", array$())
FOR i% = 0 TO n%-1
PRINT array$(i%) "." ;
NEXT
PRINT
READ csv$
DATA "Hello,How,Are,You,Today"
SPLIT csv$ BY "," TO elements$ SIZE n
FOR i = 1 TO n
PRINT elements$[i] FORMAT "%s"
IF i < n THEN PRINT "." FORMAT "%s"
NEXT
PRINT