>>>>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