M
Michael D. Ober
I am attempting to learn C# and have run into a fundamental type casting
problem for input strings. After reviewing the VS 2005 documentation, I am
obviously missing simple type conversion operators - specifically, string
(textbox input values) to numbers of various types. In C++ this would be
done with sscanf and in both VB6 and VB 2005 this would be done with either
C<type> (CDbl, CLng, etc.) or with the generic VB 2005 CType(textbox1.text,
Long).
My question is two fold - first what are the direct equivalents to the CDbl
and CLng series of VB functions and secondly, what is the general type
caster replacement for CType?
Thanks,
Mike Ober.
problem for input strings. After reviewing the VS 2005 documentation, I am
obviously missing simple type conversion operators - specifically, string
(textbox input values) to numbers of various types. In C++ this would be
done with sscanf and in both VB6 and VB 2005 this would be done with either
C<type> (CDbl, CLng, etc.) or with the generic VB 2005 CType(textbox1.text,
Long).
My question is two fold - first what are the direct equivalents to the CDbl
and CLng series of VB functions and secondly, what is the general type
caster replacement for CType?
Thanks,
Mike Ober.