J
Jethro
Having upgraded my VB6 project ....
This doesn't work
dim i as integer
For i = 0 to 8
MyRecordset.Fields(i).Value = "Test" <---------- Error thrown here
"item or variable not found in collection'
next i
This does :
dim i as integer
For i = 0 to 8
MyRecordset.Fields(CInt(i)).Value = "Test"
next i
Weird huh ? I could understand it if i was an object, but not a primitve
(althought I notice that even primitives have inbuilt methods now)
This doesn't work
dim i as integer
For i = 0 to 8
MyRecordset.Fields(i).Value = "Test" <---------- Error thrown here
"item or variable not found in collection'
next i
This does :
dim i as integer
For i = 0 to 8
MyRecordset.Fields(CInt(i)).Value = "Test"
next i
Weird huh ? I could understand it if i was an object, but not a primitve
(althought I notice that even primitives have inbuilt methods now)