Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
INT field in Dataset
Message
De
27/01/2009 15:58:09
 
 
À
27/01/2009 15:54:37
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
01377516
Message ID:
01377517
Vues:
15
>I have a SQL table that I gather a dataset from. Included in the dataset are values from INT fields. 2 of the fields I use to reposition a textbox on the form. The only way I can make this happen is as follows:
>
>txtbudfc1.Location = new System.Drawing.Point( int.Parse(dsx.Tables[0].Rows[0]["udfc1txtbxloc"].ToString()),
> int.Parse(dsx.Tables[0].Rows[0]["udfc1txtbyloc"].ToString()));
>
>I assume there is a better way than "int.parse(table.row.fieldname.tostring())" conversion. Is there a simple way to get the INT value from the dataset object?
>
>Any ideas?

I never had to do that to get a value from an integer field. As for me, I always get the the row into loRow(). Then, I can use lnValue=loRow("MyIntegerField"). I do not understand why such conversion would be necessary. Can you elaborate more on why this is like that?
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