By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,521 Members | 1,252 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,521 IT Pros & Developers. It's quick & easy.

What does Error$ mean?

Seth Schrock
Expert 2.5K+
P: 2,951
I was just looking back through one of my first databases (back when I copied and pasted code from the Internet to make things work) and I ran across an error handler that I must have copied, but I have no idea what it means.
Expand|Select|Wrap|Line Numbers
  1. ACHID_Err:
  2.     MsgBox Error$
  3.     Resume ACHID_Exit
What does dollar sign after "Error" do? I have found examples of it being used online, but I haven't found an explanation of what it does yet.
Mar 18 '14 #1

✓ answered by zmbd

It is a depreciated method for reporting the error that occurred... seems that it was just the Err.Description - I haven't used it since ACC97 came around. In any case, it has been replaced by the objects Err.Number and Err.Description

Share this Question
Share on Google+
3 Replies


zmbd
Expert Mod 5K+
P: 5,397
It is a depreciated method for reporting the error that occurred... seems that it was just the Err.Description - I haven't used it since ACC97 came around. In any case, it has been replaced by the objects Err.Number and Err.Description
Mar 18 '14 #2

Seth Schrock
Expert 2.5K+
P: 2,951
Thats what I wanted to know. Thanks Z.
Mar 18 '14 #3

NeoPa
Expert Mod 15k+
P: 31,768
The dollar sign is an indicator of type. "$" means string. "&" means long. There are various others.

In earlier versions of the language they were used more in function names to indicate the type of the value returned but these have been deprecated now. Just the function names - not the type characters.
Mar 19 '14 #4

Post your reply

Sign in to post your reply or Sign up for a free account.