Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataView/DataSet/DataReader
Message
De
09/01/2007 15:41:40
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
À
09/01/2007 15:33:57
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
01183234
Message ID:
01183957
Vues:
26
>>>>Use [] instead of () in c#.
>>>
>>>Yes. But I must still use ...ToString() method as MyVar = MyObj.ToString()).
>>>Then I can do DateTime.Parse(MyVar)) or int.Parse(MyVar)) or double.Parse(MyVar)) or bool.Parse(MyVar) etc....
>>
>>Sam again
>>DateTime myVar = (DateTime)MyObj;
>>int myVar = (int)MyObj;
>>double myVar = (double)MyObj;
>>DataSet myVar = (DataSet)MyObj;
>>
>>Think u get the idea.
>
>Yes I think it finally hit me.
>
>See, I was expecting to get back like a cursor with various datatype. But no. As you have tried to tell me, I get an OBJECT back and it's up to me to do what I want/can cast it to.
>
>Thanks.
Your welcome Sam as I said many times the worst thing you can do when learning .net language is trying to compare to vfp or think in vfp worked this way so perhaps .net is the same, everything in .net are objects just like in java.
Alexandre Palma
Senior Application Architect
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform