Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Type mismatch on empty string..??

Status
Not open for further replies.

snowboardr

Programmer
Feb 22, 2002
1,401
PH
I have tried this a few different ways, I still get an error if its empty! like this: ?view=page1&package=

tried:

If StrPackage < 6 or StrPackage > 0 then
IsPackage = True
Else
IsPackage = False
End If

-----

If isEmpty(StrPackage) or StrPackage > 6 or StrPackage < 1 then
IsPackage = False
Else
IsPackage = True
End If


Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: &quot;&quot;]'
/Default.asp


Any Suggestions?
 
strPackage is a string and u r trying the numeric operations on it .. that is the problem. convert strPackage to number using cLong or cInt then use it .

Hope this helps ..
srinu...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top