use of '&' symbol

C

cinnie

greetings

what is the significance of the '&' symbol in code like...

For lngStart = 1& To Len(strIn)

thanks
 
T

Tom van Stiphout

On Fri, 16 Jan 2009 19:16:03 -0800, cinnie

In the Immediate window (Ctrl+G) enter:
?vartype(1&)
It will return 3. You look up vartype and realize this is a long
integer.

In your specific example it is superfluous. Assuming lngStart is
declared as a Long Integer, the constant 1 will automatically be
considered to be a long integer as well.

-Tom.
Microsoft Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top