Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Will the 'Fox is Dead' prophecies become self-fulfilling
Message
From
13/12/1999 09:49:33
 
 
To
13/12/1999 08:30:40
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00301589
Message ID:
00302686
Views:
23
>What is your objection to the code that you listed?
>
>>DO WHILE !EOF()
>>REPLACE field1 WITH value1
>>REPLACE field2 WITH value2
>>REPLACE field3 WITH value3
>>REPLACE field4 WITH value4
>>REPLACE field5 WITH value5
>>
>>*....replace more fields
>>
>>SKIP
>>
>>LOOP
>>
>>ENDDO

This code can be done in one line:

REPLACE ALL Field1 with Value1,;
Field2 with Value2,;
Field3 with Value3,;
Field4 with Value4,;
Field5 with Value5

And, it will run alot faster than above... OF COURSE... I think that this may also do a file lock... so, if you need to avoid that, the avbove way, while a bit less efficient will only lock records. So, there is really more GRAY here than black and white.

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform