Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting number of columns in a row
Message
De
18/03/2007 01:45:25
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
17/03/2007 17:04:39
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01205036
Message ID:
01205128
Vues:
20
Actually, that was a typed dataset when I copied and pasted. After I pasted and "generalized" the code, I didn't realize what I had done.

Oh well, Kevin beat me anyway. I will just put a little star sticker on the side of my monitor and go to bed.

>Actually, Kevin ... your answer *WAS* way better and correct.
>
>Sorry Mike, but your syntax won't cut it (unless you're using a Typed DataSet where you have a DataTable named table), but for a plain old run of the mill DataSet, it needs to be:
>
>DataSet.Tables["MyTable"].Columns.Count
>//or
>DataSet.Tables[0].Columns.Count
>'or in VB, substitue () for []
>
>
>~~Bonnie
>
>
>> In a datatable? dataset.table.columns.count
>>
>>Jeez, that was SO MUCH BETTER than my reply!!! (haha, just kidding)
>>
>>your friend,
>>Tracy-in-a-bad-mood
Very fitting: http://xkcd.com/386/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform