Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/Tokenize-a-string/PowerBASIC/tokenize-a-string.basic
Normal file
15
Task/Tokenize-a-string/PowerBASIC/tokenize-a-string.basic
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
FUNCTION PBMAIN () AS LONG
|
||||
DIM parseMe AS STRING
|
||||
parseMe = "Hello,How,Are,You,Today"
|
||||
|
||||
REDIM parsed(PARSECOUNT(parseMe) - 1) AS STRING
|
||||
PARSE parseMe, parsed() 'comma is default delimiter
|
||||
|
||||
DIM L0 AS LONG, outP AS STRING
|
||||
outP = parsed(0)
|
||||
FOR L0 = 1 TO UBOUND(parsed) 'could reuse parsecount instead of ubound
|
||||
outP = outP & "." & parsed(L0)
|
||||
NEXT
|
||||
|
||||
MSGBOX outP
|
||||
END FUNCTION
|
||||
Loading…
Add table
Add a link
Reference in a new issue