Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21114

[RESOLVED] Do I need to type cast

$
0
0
Dim j As Variant
:
:
:
Dim k As Integer


Assume j contains a numeric value

Can I do this

k = j

or do I have to do this

k = CInt(j)

Viewing all articles
Browse latest Browse all 21114