Re: Turning a Text Sequence into a Sequence Array

new topic     » goto parent     » topic index » view thread      » older message » newer message

tested, work fine.

sequence res,sentence 
sentence="This is only theoretically a sentence."  
res={} 
while 1=1 do 
 if not find(32,sentence) then 
	 res&={sentence} 
	 exit 
	end if 
	res&={sentence[1..find(32,sentence)]} 
 sentence=sentence[find(32,sentence)+1..length(sentence)] 
end while	 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu