DIM I&

User avatar
sal21
PlatinumLounger
Posts: 4368
Joined: 26 Apr 2010, 17:36

DIM I&

Post by sal21 »

First time to see a & as property variable..
wat is &, integer, string, variant, long... ecc

User avatar
HansV
Administrator
Posts: 78599
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: DIM I&

Post by HansV »

The declaration

Dim I&

is equivalent to

Dim I As Long

Other options are:

% specifies Integer
! specifies Single
# specifies Double
$ specified String

So for example

Dim MyName$

is equivalent to

Dim MyName As String
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4368
Joined: 26 Apr 2010, 17:36

Re: DIM I&

Post by sal21 »

tk for explain

User avatar
sal21
PlatinumLounger
Posts: 4368
Joined: 26 Apr 2010, 17:36

Re: DIM I&

Post by sal21 »

HansV wrote:
17 May 2020, 10:53
The declaration

Dim I&

is equivalent to

Dim I As Long

Other options are:

% specifies Integer
! specifies Single
# specifies Double
$ specified String

So for example

Dim MyName$

is equivalent to

Dim MyName As String
ops...
in this case, for Booelen a can to use only Dim myvar as Boolean ?

User avatar
HansV
Administrator
Posts: 78599
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: DIM I&

Post by HansV »

Yes, indeed. There is no type identifier character for Boolean, Byte or Date.
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4368
Joined: 26 Apr 2010, 17:36

Re: DIM I&

Post by sal21 »

tks