×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Attachmate Error Codes

Attachmate Error Codes

Attachmate Error Codes

(OP)
I have been figuring out Extra! Basic just from using the Macro editor, and digging out VB asnwers that usually work. When I looked at the help page for the mkDir statement, the example says "If Err = 75" means that the directory already exists.

So, my question is: Is there a list of Extra! Basic error codes and their values and meanings? For example, I'm sure that mkDir can fail in ways other than encountering an existing directory. It would be nice to know which values Err can assume, and what they mean.

Any help out there?

Thanks,
Steve

RE: Attachmate Error Codes

I've always used an error handler with a messagebox that gives me the Err value and Error$ statement. There are some properties and methods that have lists of return codes, but not all.

FYI, the mkdir is probably not an EB function, but a shell function using an API call.

calculus

RE: Attachmate Error Codes

(OP)
Yes, thanks for the reference to the Error$ function. I did a simple loop to generate all the messages, so I could see what they were. The actual text for Error 75 is "Path/File access error" so it is probably as you say a catch-all value for a shell error.

RE: Attachmate Error Codes

What did you put in your loop?  I want to try it out myself.  Thanks

RE: Attachmate Error Codes

Does anyone know how to get the list of errors for Attachmate from the error$ function?

RE: Attachmate Error Codes

Put this in a Sub:

For X = 1 to 32767
    Err = X
    msgbox Err & Space(5) & Error$
Next

calculus

RE: Attachmate Error Codes

Are you serious? We have to click ok 32,767 times? Yikes!
I think I'll modify so I can get out when I need to.. Thanks!

RE: Attachmate Error Codes

If you open Help in the Macro Editor in Extra and type "trappable" in the Find tab, it gives a list of trappable errors. I don't know if it is complete, but seems to give most notable.

RE: Attachmate Error Codes

Obviously you can also change the code to write to a file.

calculus

RE: Attachmate Error Codes

Aahh! See that's why you are Calculus! Very smart!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close