View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Rowan Drummond[_3_] Rowan Drummond[_3_] is offline
external usenet poster
 
Posts: 414
Default any variable size

It depends what you mean by size.

So far all you have done is declare the variable which has created a
named storage location in memory. As you have declared it an integer the
"size" of this location is 2 bytes and the range of values you could
assign to the variable is -32,768 to 32,767.

As you have not assinged any value to the variable it's default value is 0.

Hope this helps
Rowan

x taol wrote:

dim iLng as integer
~~~~~~~~~

then i want to know size of "iLng" using VBA.
surely answer is 32767





*** Sent via Developersdex http://www.developersdex.com ***