C
Charles Law
As far as I can tell the following are equivalent
Dim i As Integer
i = Convert.ToInt32(1)
i = CInt(1)
i = CType(i, Integer)
Is there any particular reason why we should have all these ways to do the
same thing? If they are different, what is the difference? Otherwise,
wouldn't it be simpler to have just one way?
Charles
Dim i As Integer
i = Convert.ToInt32(1)
i = CInt(1)
i = CType(i, Integer)
Is there any particular reason why we should have all these ways to do the
same thing? If they are different, what is the difference? Otherwise,
wouldn't it be simpler to have just one way?
Charles