Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp50 - import from a text file into vfp
Message
 
À
11/07/1997 08:26:21
Jp Steffen
Leadership Data Services
Des Moines, Iowa, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00038828
Message ID:
00039417
Vues:
43
one >of the most inefficient ways to do it is low level file manipulation. Why are you reprogramming Fox?
>
>Ok Guys! Sorry I was off the thread for a few days, but I wanted to answer Doris' question, "Why am I reprogramming Fox?" Well Doris you must be aware of some SET command or APPEND FROM argument which has of yet eluded me. Do me a favor and try this little test out. 1) Create a text file by opening a text editor and just typing into it WITHOUT inserting hard returns (No CRLF characters). Make sure to type a couple hundred characters in there for good measure. 2) Create a small .dbf table with 3 or four fields of 2 or three characters each. 3) Now use our highly esteem APPEND FROM command, APPEND FROM test.txt SDF.
>
>Doris and/or Dave, what happend on your machine? Do you know of some undocumented aurgument that tells Fox to break the strings according to the character length of the .dbf table. Not that this would change my reasons for using low-level file functions, I do things like input audits and conditionally post incoming tape data and un-packing 'packed binary' data from its original EBCDIC format. APPEND FROM is limited. Yes your right Doris, Low-level file functions can be a big performance hit. Sometimes I use a langauge a little closer to the hardware. But in many cases Fox's LL File functions allow me to read in, interpret and audit incoming data as it would normally come to me form an Standard 9 Track Tape.
>
>Dave, I never said you were a lazy programmer.
>
>JP

well then let me be the first. if someone else has done the work for me, i say thanks, give them the credit and pass the savings on to the client...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform