Variable and declaration terminology

Can someone explain to me what the ampersand represents in this declaration: ByVal sigNode& as well as the dollar sign and percent for variables: szEntity$, ret %.

LVL 8
ampapaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bramsquadCommented:
got this from Q_20343884

The "$" is a carryover from the original BASIC to indicate that a variable or function was a string-type.  In VB, this was retained and later made optional, although the string-type operates slightly faster than the version without the string (which uses a variant.)

If you attempt to use a "$" after a non-string variable, you may get an error.

These are identical in VB6:

Dim A$
Dim A as string
0
bramsquadCommented:
and i just found the rest

they are all type declaration indicators -

($) - string
(!) - single
(&) - long
(%) - integer
(#) - double
(@) - currency

~b
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jimbobmcgeeCommented:
& is a long.

As in

   dim A as long,

is also
 
   dim A&

HTH

J.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

ampapaAuthor Commented:
So, if these are optional as long as I find replace them and properly declare the values correctly I shouldn't have any problems?
0
bramsquadCommented:
exactly, i think they kept them in for the "smooth transition" effect for BASIC to vb users.  

they took them out in vb.net....
0
ampapaAuthor Commented:
Thanks for the speedy reply's.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.