Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parsing a file that's not quite comma-delimited
Message
De
10/07/2007 11:44:27
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
10/07/2007 11:35:30
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01238841
Message ID:
01238963
Vues:
21
>>Alines(laRecord,laLine[m.i])
>
>I don't get this line and how it relates to the code the Peter posted. Can you explain it more?

laLine[m.i] is a string like:

MSH|1|||||Some data|

Alines(laRecord, laLine[m.i],1,'|')

would create an array named laRecord where laRecord[1] correspond to getwordnum(..,1,...).
Directly in that array you could do your type conversions and insert data into your table:

laRecord[4] = converttype( laRecord[4] )

dimension laRecord[1,alen(laRecord)]
insert into myTable from array laRecord

PS: But what I'm actually thinking about is to parse that into 'object' and insert ... name ...

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
Répondre
Fil
Voir

Click here to load this message in the networking platform