Could someone please tell me what Runtime Error 5 means, and is caused by? Thanks
Printable View
Could someone please tell me what Runtime Error 5 means, and is caused by? Thanks
Form MSDN
- An argument probably exceeds the range of permitted values. For example, the Sin function can only accept values within a certain range. Positive arguments less than 2,147,483,648 are accepted, while 2,147,483,648 generates this error.
- This error can also occur if an attempt is made to call a procedure that isn't valid on the current platform. For example, some procedures may only be valid for Microsoft Windows, or for the Macintosh, and so on.
If you provide the line where the Error was generated, It might be easier for us to help you.
Error 5 = Invalid procedure call or argument.
You might be passing a string to a procedure that only accepts integer for example.
You might look at this site:
http://msdn.microsoft.com/library/de...alfunccall.htm
It has the same error text posted by Megatron, but has a "See Also" link that might provide some clues for you.
The problem is not with me. I received an e-mail from someone trying to run my program who says they've got the proper runtimes and everything. They said it gives them that error when they try to start it. I've never received a complaint before, and i've seen my program run on a bunch of different computers! I can't really fix the problem in the code because i'm not sure where/why it's generated on their computer. Suggestions? Thanks
Just an idea.
This piece of code could also give Error 5:
Text1.enabled = False
Text1.setfocus
Yes, that would count as an "invalid procedure call"