Chaim
Are you trying to test if i is wholly divisible by 11, i.e. every 11th record?
If so the line should be:
if MOD( i, 11) = 0
Terry
>I want to check if the value is integer.
>why do I get a error in the following syntax:
>
create cursor labn (labnumber c(11))
>for i=1201 to 1288
> ci=alltrim(str(i))
> insert into labn values ('B'+ci)
>endfor
>create cursor labn2 (labnumber c(11))
>select labn
>i=0
>scan
> i=i+1
> insert into labn2 values (labn.labnumber)
> iv=i/11
> if int(iv)
> insert into labn2 value('Narker')
> insert into labn2 value('Roller')
> endif
>endscan
>select labn2
>brow
>Thank you
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.