Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a bug
Message
 
To
31/03/2000 09:06:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00353261
Message ID:
00353274
Views:
16
>It's not that exact code I am worried about, but I have a class that updates info on a table from textboxes, and uses the replace command.
>
>But if the class stumbles on a blank code, and attempts to update the table, then it updates everything.
>
>The original code would be:
>
>REPLACE pr_addr1 WITH this.txtPr_Addr1.Value FOR pr_code = lcPr_Code

How about trying the "exact" operator, ==:

REPLACE pr_addr1 WITH this.txtPr_Addr1.Value FOR pr_code == lcPr_Code
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform