Page 1 of 1

parsing PHP result from web using itemdel

Posted: Sun Oct 11, 2009 1:06 am
by reelstuff
I am trying to parse some PHP code like this,

Code: Select all

echo $valid."::".$install."::".$active;
I tried to set the itemdel to "::" but got error, in fact I tried several and could not get it to chunk right,

any suggestions on how to get the values, into three lines,

right now it is, 1::1::1

some how I have to get it like this
1
1
1

then I can get each line and value

thanks in advance for any suggestions,

Posted: Sun Oct 11, 2009 1:41 am
by rabit
put "1::1::1" into tStr

replace "::" with comma in tStr

repeat for each item thisItem in tStr
put thisItem & return after tList
end repeat

delete char -1 of tList



Cheers

Ralf

Posted: Sun Oct 11, 2009 2:14 am
by reelstuff
rabit wrote:put "1::1::1" into tStr

replace "::" with comma in tStr

repeat for each item thisItem in tStr
put thisItem & return after tList
end repeat

delete char -1 of tList



Cheers

Ralf
Thank you I really appreciate that, worked perfectly, I had been doing php all day and just could not get my brain to reboot into rev script, thanks again.