J
John Talli
DOESNT WORK
1 For Each itm As Info.fld_Info In Me._clsInfo.yPNameX
2 For Each itmHTML As ASPnet_HTML_Field In
Me._clsASPnet_HTML_Fields.yASPnet_HTML_Fields
3 If itm.dbFld_Unq_Code = itmHTML.dbFld_Unq_Code Then
WORKS
5 For Each itm As Info.fld_Info In Me._clsInfo.yPNameX
6 Dim sdbFld_Unq_Code As String = itm.dbFld_Unq_Code
7 For Each itmHTML As ASPnet_HTML_Field In
Me._clsASPnet_HTML_Fields.yASPnet_HTML_Fields
8 Dim sitmHTML_dbFld_Unq_Code As String = itmHTML.dbFld_Unq_Code
9 If sdbFld_Unq_Code = sitmHTML_dbFld_Unq_Code Then
Why doesn't line #3 above work? I have just ran around in circles trying
to figure out why line #3 produces FALSE results although it is equivilant
to line #9.
Line #9 just uses variables from line #6 and line #8 and should be the same
as line #3.
It seems unless I actually USED a variable in lines #6 & #8,
vb.Net doesn't really load into memory whatever is contained in either
itm (line #1)
itmHTML (line #2)
Unless this is explainable, it seems to be a VERY BIG BUG in vb.Net.
Is it explainable?
1 For Each itm As Info.fld_Info In Me._clsInfo.yPNameX
2 For Each itmHTML As ASPnet_HTML_Field In
Me._clsASPnet_HTML_Fields.yASPnet_HTML_Fields
3 If itm.dbFld_Unq_Code = itmHTML.dbFld_Unq_Code Then
WORKS
5 For Each itm As Info.fld_Info In Me._clsInfo.yPNameX
6 Dim sdbFld_Unq_Code As String = itm.dbFld_Unq_Code
7 For Each itmHTML As ASPnet_HTML_Field In
Me._clsASPnet_HTML_Fields.yASPnet_HTML_Fields
8 Dim sitmHTML_dbFld_Unq_Code As String = itmHTML.dbFld_Unq_Code
9 If sdbFld_Unq_Code = sitmHTML_dbFld_Unq_Code Then
Why doesn't line #3 above work? I have just ran around in circles trying
to figure out why line #3 produces FALSE results although it is equivilant
to line #9.
Line #9 just uses variables from line #6 and line #8 and should be the same
as line #3.
It seems unless I actually USED a variable in lines #6 & #8,
vb.Net doesn't really load into memory whatever is contained in either
itm (line #1)
itmHTML (line #2)
Unless this is explainable, it seems to be a VERY BIG BUG in vb.Net.
Is it explainable?