943,746 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 17956
  • ASP RSS
Jul 6th, 2007
0

Microsoft VBScript runtime error 800a0005

Expand Post »
Hello,
I'm a newbi to both scripting and asp. I aneed to understand this error message being received from an existing web page. This is displayed on most page refreshes.

“Microsoft VBScript runtime error 800a0005
invalid procedure call or argument ‘mid’
/notify_shipped asp, line 24

The website uses MySQL for a database and that it tied to an Access database on the local server here.

The function appears to be referring to stripping the middle initial of a name to insert into a response email to be sent to the user. But this appears on most pages. I am told some users see it and some don't.

I can post the code of the notify_shipped asp if needed for clarity. Advise and suggestions are welcome.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
n5eea is offline Offline
1 posts
since Jul 2007
Jul 11th, 2007
0

Re: Microsoft VBScript runtime error 800a0005

yes please post the code
Reputation Points: 14
Solved Threads: 19
Posting Pro in Training
campkev is offline Offline
484 posts
since Jul 2005
Oct 23rd, 2007
0

Re: Microsoft VBScript runtime error 800a0005

PLEASE SEND ME ALL CODE THATS WHY I AM CHECK ..

Click to Expand / Collapse  Quote originally posted by n5eea ...
Hello,
I'm a newbi to both scripting and asp. I aneed to understand this error message being received from an existing web page. This is displayed on most page refreshes.

“Microsoft VBScript runtime error 800a0005
invalid procedure call or argument ‘mid’
/notify_shipped asp, line 24

The website uses MySQL for a database and that it tied to an Access database on the local server here.

The function appears to be referring to stripping the middle initial of a name to insert into a response email to be sent to the user. But this appears on most pages. I am told some users see it and some don't.

I can post the code of the notify_shipped asp if needed for clarity. Advise and suggestions are welcome.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jaiminshah_mca is offline Offline
1 posts
since Oct 2007
Nov 26th, 2007
0

Re: Microsoft VBScript runtime error 800a0005

No need to post the code here yet. From the looks of the error, there is a Mid function call on line 24 of page notify_shipped asp.

Go to that page and that line and make sure that you're calling the function properly. Remember, this is a function not a SUB routine, so it is supposed to RETURN a value, and that value is going to be of STRING type.

The syntax of the call is: S = Mid(string,start[,length]) where [,length] refers to an optional value.

Your call should look something like any of these:

strNewString = Mid(strMyString, 6) <-- returns all characters after character 6

strNewString = Mid(strMyString, 7, 10) <-- returns characters between 7 and 10

strNewString = Mid(strMyString, 1, len(strMyString-4)) <-- returns all characters in the string minus the last 4 characters of the original string. For dynamic string lengths.

Good Luck!
Reputation Points: 10
Solved Threads: 3
Light Poster
CertGuard is offline Offline
48 posts
since Jul 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: Inserting photos into sqlserver by vb language
Next Thread in ASP Forum Timeline: ASP redirect





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC