Link to home
Start Free TrialLog in
Avatar of demmick
demmick

asked on

MidB Function

Hi all

I am using Midb funtion in one of my ASP pages but when I run the page I get the following error.....any ideas why?

Microsoft VBScript runtime error '800a0005'

Invalid procedure call or argument: 'MidB'

/reorg/Loader.asp, line 136


Demmick
ASKER CERTIFIED SOLUTION
Avatar of drittich
drittich

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of elstcb
elstcb

I've had problems with MidB before too - some scripts it works fine in, others (normally the ones I've bodged) it falls over on - never really understood why.
What are you trying to use the function for?
Is it possible you are sending it an empty string, or trying to reference past the end of the string?  That will give an error like you are seeing.

Kevin
use the MidB function with byte data contained in a string, as in double-byte character set languages... i have seen this used in file-upload scripts often. the function is not for use with strings, but with byte data.
demmick--->  Please update and finalize all your open questions.  If you need help in terms of splitting points, just comment with details or post a zero point question in the Community Support topic area with the link to the question and details.

Expert input is always welcome to determine the fair outcome of abandoned questions; such as this, if it remains "unattended" by asker for one more week.

Thank you,

Moondancer
Community Support Moderator @ Experts Exchange
Thanks for returning and finalizing this question.  It would add value to questions any time you choose to grade less than an "A", to add comments as to why.  This enlightens both the experts and future Askers who look at this question for guidance.

Also, wanted to point you to the HELP DESK link on the left for Question/Answer processes, Member Agreement and the Guidelines.  Easy questions typically begin at a value of 50 points, the maximum per question is 300 points.  This one was posted for 10 points, despite that help was given.  All the more reason to expound on why the help you got felt less than excellent.

Moondancer
Community Support Moderator @ Experts Exchange