Results 1 to 7 of 7

Thread: Runtime Error 5?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    31

    Question

    Could someone please tell me what Runtime Error 5 means, and is caused by? Thanks

  2. #2
    Guest
    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.

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Error 5 = Invalid procedure call or argument.

    You might be passing a string to a procedure that only accepts integer for example.

  4. #4
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    736
    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.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    31

    Unhappy

    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

  6. #6
    Guest
    Just an idea.
    This piece of code could also give Error 5:

    Text1.enabled = False
    Text1.setfocus




  7. #7
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Yes, that would count as an "invalid procedure call"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width