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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strange Mid error 1

Status
Not open for further replies.

ironhide1975

Programmer
Feb 25, 2003
451
US
Code:
Dim Test
Test = Mid("Find ME in here", 6, 2) 
response.Write test

I get this error.
Microsoft VBScript runtime (0x800A000D)
Type mismatch

 
Exactly, this should work but yet I run the page and I get an error.

 
can you show the complete code on your asp page...
MID() throws type mismatch error for null values...

-DNG
 
Ah figured it out was trying to make a variable named MID and that was causing issues.

Many thanks.

 
Yes - vbscript is annoying in that it is case independent.

mId is the same as mid.

I used to begin all my member variables with m but after I battled with a mId and mOd problem for a few hours, I've switched to m_
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top