Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing values to an array
Message
De
15/04/2003 11:42:17
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
15/04/2003 11:38:17
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00777815
Message ID:
00777820
Vues:
12
>I'm automating a data migration task in wich i'm exporting data from a txt file to an excel sheet.
>Excel has an object called querytable, wich has an array property called textfilecolumndatatypes; this property stores a value for each column in the source file.
>In fact, something like:
>Myarray = MyQuerytable.TexFileColumnDataTypes
>returns an array, but (here's my problem)
>
>MyQuerytable.TexFileColumnDataTypes = Myarrray
>
>is not a valid statement (syntax error).
>So invalid are these other approaches:
>MyQuerytable.TexFileColumnDataTypes = Myarrray(1)
>MyQuerytable.TexFileColumnDataTypes(1) = '1,1'
>MyQuerytable.TexFileColumnDataTypes = '1,1'
>...
>
>How do I get to put some values in this property?
>
>TIA

Cristobal,
Use OpenText instead. Then you could pass an array by ref.
Check Message #770668
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