>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement