T
tcropper
I have a set of integers which I want to search for using a For Each
statement... but I can't quite get it to work correctly.
dim l_intType as Integer
l_intType = MyInt
For Each l_intTranType As Integer In New Long() {1, 20, 100, 135, 200,
207, 205, 211}
WriteStuffToFile
Next
MyInt is a return method from a COM object and changes everytime a
record is read... but this above returns this error:
Variable l_intType hides a variable in an enclosing block
I know why I'm getting this message, but I just can't work out how to
fix this code to only write things to a file when l_intType is equal
to the one of the intgeres in the list above.
HELP!
Ta.
statement... but I can't quite get it to work correctly.
dim l_intType as Integer
l_intType = MyInt
For Each l_intTranType As Integer In New Long() {1, 20, 100, 135, 200,
207, 205, 211}
WriteStuffToFile
Next
MyInt is a return method from a COM object and changes everytime a
record is read... but this above returns this error:
Variable l_intType hides a variable in an enclosing block
I know why I'm getting this message, but I just can't work out how to
fix this code to only write things to a file when l_intType is equal
to the one of the intgeres in the list above.
HELP!
Ta.