ChrisMac
15 years agoContributor
can't pass in a variable to aqObject.CheckProperty
Hi all -
I'm trying to pass in a variable to aqObject.CheckProperty but keep getting a vbscript runtime error.An example:
Sub Marine()
Dim rownum
rownum=14
Set Grid = <object name>
Call aqObject.CheckProperty(Grid, "wValue(rownum, ""Mat-Result"")", 0, 30)
End Sub
If I hardwire an integer it works fine but when I try to set rownum = 15 and use rownum instead of 15 I get:
Access violation at address 16EEE6FF in module 'tcCoreEx.dll'. Read of address 00000000
Error location:
Unit: "Intellibid\Special Items\Script\junk"
Line: 14 Column: 3.
They're both integers, I've used VarType and it came back 2 which is an integer. Any ideas?
Chris
I'm trying to pass in a variable to aqObject.CheckProperty but keep getting a vbscript runtime error.An example:
Sub Marine()
Dim rownum
rownum=14
Set Grid = <object name>
Call aqObject.CheckProperty(Grid, "wValue(rownum, ""Mat-Result"")", 0, 30)
End Sub
If I hardwire an integer it works fine but when I try to set rownum = 15 and use rownum instead of 15 I get:
Access violation at address 16EEE6FF in module 'tcCoreEx.dll'. Read of address 00000000
Error location:
Unit: "Intellibid\Special Items\Script\junk"
Line: 14 Column: 3.
They're both integers, I've used VarType and it came back 2 which is an integer. Any ideas?
Chris