Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Append for few records
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00598952
Message ID:
00599012
Vues:
24
>>>I would do
append from (m.tcFileName) delimited with tab
from command window and hit escape key.
>>>
>>Hi Sergey,
>>
>>I want to implement it in a program, so the user can decide, do we want to append or we need to adjust table structure. I'm thinking about low-level, but it seems like too much work...
>>
>< snip >
>Not really
lnFile = FOPEN(m.tcFileName)
>lcBuffer = FREAD(lnFile, 32*1024)  && 32K
>FCLOSE(lnFile)
>* Get read of the last incomplete record
>lcBuffer = LEFT( lcBuffer, RAT( CHR(13)+CHR(10), lcBuffer) + 1)
>Strtofile( lcBuffer, < temp file >)
>
Great, will do it on Monday. Happy Holidays to you and all UTrs!
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform