Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Upper() problem
Message
From
18/03/2000 01:50:07
 
 
To
17/03/2000 15:36:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00347286
Message ID:
00347424
Views:
16
>I am having a problem with the UPPER() function

When comparing a string to a string, the comparison stops when the right side stops (or of course a mismatch occurs), like this:

'ABCDEFG' = 'ABC'

is compared like:

'a' = 'a' .t.
'ab' = 'ab' .t.
'abc' = 'abc' .t.


And it stops there because the right side is done. So 'abcd' = 'abc' but not vice versa. You'll want to use the == instead of = in this case, and you don't need Macro Expansion, it will slow you down.
Previous
Reply
Map
View

Click here to load this message in the networking platform