A
Arpan
The syntax of the function CType, as stated in the .NET 2 SDK
Documentation, is
CType(expression, typename)
The Documentation also states that
CType is compiled inline which means that the conversion code is part
of the code that evaluates the expression.
Can someone please explain me (with an example preferably) what does
the above statement mean? I know that CType is used for type casting.
In the following line
CType(ea.Item.Cells(1).Controls(0), TextBox).Text
if I am not mistaken, "ea.Item.Cells(1).Controls(0)" is the expression
but here CType is casting the expression from what type to what type?
Secondly, what is ".Text" doing there at the very end of the line?
Thanks,
Arpan
Documentation, is
CType(expression, typename)
The Documentation also states that
CType is compiled inline which means that the conversion code is part
of the code that evaluates the expression.
Can someone please explain me (with an example preferably) what does
the above statement mean? I know that CType is used for type casting.
In the following line
CType(ea.Item.Cells(1).Controls(0), TextBox).Text
if I am not mistaken, "ea.Item.Cells(1).Controls(0)" is the expression
but here CType is casting the expression from what type to what type?
Secondly, what is ".Text" doing there at the very end of the line?
Thanks,
Arpan