it works provided you have no sample restriction before running these lines (i.e. had to do "smpl @all" before)
now, inside my loop
Code: Select all
for !i=1 to !ncross
smpl if @crossid = !i
'do something here
next
!id=@crossid throws the same error as the one before
