SRL Archive - Help and Support

How do you


Camaro'

2009-07-05 09:44:03

I have a tstringarray, how do i go through the tstring array in order and write them in order.

like

Tstringarray := ['cnr','is','leet'];

How do i write the string array from the first string to last one.?

Thanks in advance.

Blumblebee

2009-07-05 09:45:37

you simply need a for..do loop.

for i := 0 to High(TstringArray) do
TypeSend(TstringArray[i]); // or writeln or whatever

Nava2

2009-07-05 09:54:01

Brain fart?:p

Or did you want the TStringArray as one string?

If so, just use srl_Implode. :)

Camaro'

2009-07-05 10:00:02

From: Nava2
Brain fart?:p

Or did you want the TStringArray as one string?

If so, just use srl_Implode. :)


I think i new how to do what i asked, idk its late.
Loled, idk im a bit slow, this is retarted, but its late, cut slack some. OK My next question..

edit, before i posted i figured it out, ok thanks alot guys :)..

Da 0wner

2009-07-05 11:02:05

begin
writeln(Implode('', TStringArray(['t', 'h', 'e'])));
end.
:D?