Colleagues,
I'm going through the code written by another programmer some 5-6-7 years ago.
I came across some strange statements that, IMHO, must generate error, but apparently it does not do it coz the code works. In essence, it's a memvar declared as string and later assigned an Int value, e.g.
I can't recall that VB6 allowed such implicit data type conversion, but apparently VB .NET 2012 does... or - does it?
Please educate me.
TIA!
Regards,
Ilya
I'm going through the code written by another programmer some 5-6-7 years ago.
I came across some strange statements that, IMHO, must generate error, but apparently it does not do it coz the code works. In essence, it's a memvar declared as string and later assigned an Int value, e.g.
Code:
Dim BlaBlaBla As String = ""
' And later on
BlaBlaBla = 0
Please educate me.
TIA!
Regards,
Ilya