>I have a case statement that is not working right. My variable u = "CLERICAL II" and my variable hu = "CLERICAL I". The problem is that the case statement doesn't recognize the the 2 variables as different. What I'm I doing wrong?
>
That's the way foxpro compares string with '=' operator when SET EXACT is OFF. The string on the left is compared to the lenght of the string on the right only. So
? 'abc' = 'a'
"CLERICAL II" = "CLERICAL I"
"CLERICAL II" = "CLERICAL I "
You can either use '==' operator or pad the shorter string with spaces to the lenght of the other one.
--sb--