>Dear all :
> i have a .dbf file. I need a write a program to check the file. i want to compare a variable by itself, how can i do it.
> Example : A = age
>
>flag =.t.
>if A < > A
> flag =.f.
>endif
>do while .t.
>
This doesn't make any sense at all; A is always equal to itself.
If you simply want to spin through the file until you reach a value where a field is not equal to a specific value, you can use a much simpler construct:
flag = .t.
SCAN WHILE flag
flag = (age = lnAgeToTestAgainst)
ENDSCAN