rowgram
November 21st, 2005, 07:36 PM
I've got a variable x that is a short.
I receive a char array y, for example "-12.000".
I want to take the value of this array & make that the value of x.
Any suggestions - I've tried different things & nothing works - I must be doing something wrong.
For example, I've tried :
x = (short) Convert:ToInt16(y);
x = (short) (y);
There has to be many ways to do this - I just need one :)
Can anybody help me ?
ak
I receive a char array y, for example "-12.000".
I want to take the value of this array & make that the value of x.
Any suggestions - I've tried different things & nothing works - I must be doing something wrong.
For example, I've tried :
x = (short) Convert:ToInt16(y);
x = (short) (y);
There has to be many ways to do this - I just need one :)
Can anybody help me ?
ak