Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Upper() problem
Message
 
 
To
17/03/2000 15:36:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00347286
Message ID:
00347293
Views:
25
>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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform