Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting a table structure
Message
De
20/01/2006 02:43:02
 
 
À
20/01/2006 02:00:31
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Divers
Thread ID:
01088778
Message ID:
01088795
Vues:
7
>That solution assumed a SQL back-end, as it used the database information_schema.
>
>If you've retrieved data from a free VFP table and you want to determine the structure, you could do the following. Assuming you have a dataset called DsReturn - you could iterate through the columns in the table object
>
>
>foreach(DataColumn Dc in DsReturn.Tables[0].Columns)
>
>
>The Data Column object Dc will have properties for column name, column type, etc.
>
>There may be other ways to do it - that's the only one that immediately comes to mind.
>
>Since you mentioned "free table", I'm guessing you mean something that's not part of the DBC. If you're using the container, it would be different.

Thanks, by the time I read your message, I came up with that approach.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform