04-13-2005, 02:46 PM
in the help file for getl you use the following code to get each line of a var.
i noticed the rep also works.
would it be better to use rep since you dont need the extra var and you dont have to calc or does "for" run better in an intrinsic way?
thanks
str s ss="one[]two[][]four[]"
int i
for i 0 2000000000
if(s.getl(ss -i)<0) break ;;no more
if(s.len=0) continue ;;skip empty
out s
i noticed the rep also works.
str s ss="one[]two[][]four[]"
rep
if(s.getl(ss)<0) break ;;no more
if(s.len=0) continue ;;skip empty
out s
would it be better to use rep since you dont need the extra var and you dont have to calc or does "for" run better in an intrinsic way?
thanks