use of '&' symbol

  • Thread starter Thread starter cinnie
  • Start date Start date
C

cinnie

greetings

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

For lngStart = 1& To Len(strIn)

thanks
 
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
 
Back
Top