Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a bug
Message
From
31/03/2000 11:02:00
 
 
To
31/03/2000 08:54:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00353261
Message ID:
00353350
Views:
12
>I ran the following command on a table called PROPERTY:
>
>replace pr_addr1 with "" for pr_code = ""
>
>and it replaced every single record's pr_addr1 with a blank and there were no pr_codes = to "".
>
>Surely this is not correct.
>
>Please advise.
>Thanks
>Kev

Not a bug. When do string comparisons, VFP matches up to the length of the string on the righthand side. As Bruce and Mike suggested, there are things you can do:

- Use ==, which is "exactly equals"
- SET EXACT ON
- Use EMPTY()
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform