Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make code shorter
Message
From
09/11/2005 11:15:33
 
 
To
09/11/2005 10:47:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01066789
Message ID:
01066805
Views:
15
>Any idea how to write the following code in shorter form:
>
>
update tallamat set c30='34' where c30='3'
>update tallamat set c30='35' where c30='3½'
>update tallamat set c30='36' where c30='4'
I agree with Larry that you should put the values in a cursor or table. But you don't a loop after that. Use UPDATE or REPLACE together with the LOOKUP() function to do it in one statement.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform