String splitting
String splitting
Hi. What is the fucntion used to split a string into two at a certain point (i.e at .)?
string Splitting
The three string commands that come to mind are;
LEFT$(n)
RIGHT$(n)
MID$(l,n)
LEFT$(n)
RIGHT$(n)
MID$(l,n)
INSTR(s$, w$)
Example:
Example:
Code: Select all
s$ = "Hello World!"
l$ = LEFT$(s$, INSTR(s$, " ")-1)
r$ = RIGHT$(s$, LEN(s$)-LEN(l$))
print " '"+l$+"' "
print " '"+r$+"' "
I have left this dump.