String splitting
Posted: Sun Jun 05, 2005 8:29 pm
Hi. What is the fucntion used to split a string into two at a certain point (i.e at .)?
Discuss QBasic, Freebasic, QB64 and more
http://www.petesqbsite.com/phpBB3/
Code: Select all
s$ = "Hello World!"
l$ = LEFT$(s$, INSTR(s$, " ")-1)
r$ = RIGHT$(s$, LEN(s$)-LEN(l$))
print " '"+l$+"' "
print " '"+r$+"' "