Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FGETS() vs. IMPORT/APPEND FROM
Message
 
À
19/11/1998 00:12:19
Man Wai Chang
Hang Hing Metal Manufacturer
Hung Hom, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00158744
Message ID:
00159172
Vues:
26
>>Jen,
>>
>>I usually use APPEND FROM when possible. I just find that it's easier and that the code is more readable. I'll use LLFF if it isn't separated in a nice way. For example, a report to a file where you have to ignore headers and such.
>>
>>I've never run speed tests, but it seems like APPEND FROM would usually be > faster because you have far fewer lines for the interpeter to deal with.
>
>Yes. But there is a downside: it FLOCK the target DBF.

Yes, APPEND FROM does FLOCK() the dbf. Sometimes this is not a problem (e.g., a single user application or an update process that runs overnight). In other cases I APPEND into a cursor and then insert the records into the dbf. This is often the best approach anyway because there is often some reformatting of the data that needs to be done after you APPEND FROM.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform