>I am having a problem with the UPPER() function
>
>if fld.name = upper(lcitem)
> lcvalue = fld.valueasstring
>endif
>
>if the value of fld.name = "TOWNSHIP" and UPPER("&lcstring.") = TOWNSHIP I get a true
>
>if the value of fld.name = "TOWNSHIP_" and UPPER("&lcstring.") = TOWNSHIP I get a true
>
>if the value of fld.name = "TOWNSHIP_I" and UPPER("&lcstring.") = TOWNSHIP I get a true
>
>I am ending up in the if endif witout the two values being equal
>
Use == for equivalent or *really equal*. As far as VFP is concerned, the two strings are equal up to the point of the shorter string.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao