P
PW
I'm trying to interrogate an incoming value from a previous ASP like this
....
myCurrentQty = request.querystring("txtBCQty" & myRecordCounter)
It returns a "2" as expected.
But if I try to compare its value to another number, like this ...
if myCurrentQty > 0 then
.... I get this error ...
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'myCurrentQty'
rep_barcode2.asp, line 57
If I try to convert it to a number, like this ...
if Cint(myCurrentQty) > 0 then
I get another error ...
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'Cint'
rep_barcode2.asp, line 57
Not quite sure where I'm going wrong here.
Any help appreciated.
Thanks,
PW
....
myCurrentQty = request.querystring("txtBCQty" & myRecordCounter)
It returns a "2" as expected.
But if I try to compare its value to another number, like this ...
if myCurrentQty > 0 then
.... I get this error ...
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'myCurrentQty'
rep_barcode2.asp, line 57
If I try to convert it to a number, like this ...
if Cint(myCurrentQty) > 0 then
I get another error ...
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'Cint'
rep_barcode2.asp, line 57
Not quite sure where I'm going wrong here.
Any help appreciated.
Thanks,
PW