how would i take a string that is a sentence and has spaces, and convert it into an array splitting the words by spaces.
or see if the first word in the sentence is contained in the array, then the second word in the second array and so on!
how would i take a string that is a sentence and has spaces, and convert it into an array splitting the words by spaces.
or see if the first word in the sentence is contained in the array, then the second word in the second array and so on!
Last edited by xxpoopyxx; 03-13-2013 at 01:25 AM.
not sure how to use this but i will look into it
Note the original function:Simba Code:{$include_once srl/srl.simba}
var
s: string;
TSA: TStringArray;
begin
SetupSRL;
s := 'hellow world';
TSA := Explode(' ', s);
Writeln(TSA);
end.
del: string is your delimiter in which marks where to break the string, str, up into pieces, resulting in a TStringArray, TSA.Simba Code:Explode(del: string; str: string): TStringArray;
Thanks for everyone's help especially le jingle
Check out my new script here: http://villavu.com/forum/showthread.php?p=1194418Al-Kharid Silk buyer
There are currently 1 users browsing this thread. (0 members and 1 guests)