Split is Behaves Unexpectedly?
Sadhunathan Nadesan
sadhu at castandcrew.com
Tue Feb 19 10:22:01 EST 2008
chris bohnert wrote:
> Important! You cannot change the labelVariable in a statement inside
> the loop. Doing so will cause a script error. You can change the content
> of the container, but doing so will probably produce unexpected results.
............
It's true, that fixes the problem. Thank you!
Revised working version on vel,
#!/usr/local/bin/revolution
on startup
read from stdin until empty
put it into testData
repeat for each line thisLine in testData
put thisLine into thatLine
split thatLine by "|"
put thatLine[1]
put thatline[2]
end repeat
end startup
More information about the use-livecode
mailing list