Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
They always move the goal-posts, don't they
Message
De
05/07/2005 10:48:00
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/07/2005 10:40:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01028919
Message ID:
01029001
Vues:
14
>>
>>Terry,
>>Let the user map fields. Check FoxyClasses sample for the ideas.
>>Cetin
>
>Hi Cetin
>
>Looks like I'll have to do something along those lines. Your importer u/t looks just the job but my boss would baulk at coughing up for it, just for this one exercise. Thanks for the heads-up
>
>Terry

Here is the idea behind it:
-Analyze text file to determine its type
-Create a cursor that'd hold all the information as possible from text file (ie: if it's determined to be a tab delimited file, tab count gives generic intermediate cursor's field count. Start with all of them 254 in width, append then shrink widhts)
-Map user columns to target's columns
-Rename columns that'd be imported
-Append from (or scan...insert...endscan)
Roughly that's it. Our users were importing various formats from mainframes and this was the one I came up with.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform