Wednesday, December 19, 2007

How to use the special character at the end of a variable name can identify the type of data stored by the variable

How to use the special character at the end of a variable name can identify the type of data stored by the variable

The special character at the end of a variable name can identify the type of data stored by the variable.

Variable Type

Character

Integer

%

Long

&

Single

!

Double

#

Currency

@

String

$

Byte

None

Boolean

None

Date

None

Object

None

Variant

None

How to use the type of variables

How to use the type of variables

- Below is the type of variables.

Type

Stores

range of values

Integer

whole numbers

-32768 to 32767

Long

whole numbers

+/- 2 billion

Single

decimal numbers

+/- 1E-45 to 3E38

Double

decimal numbers

+/- 5E-324 to 1.8E308

Currency

number with up to 15 digits left of

+/- 9E14

the decimal and 4 digit right of the decimal

String

text information

up to 65000 character

Byte

whole numbers

0 to 255

Boolean

logical values

True or False

Date

date and time information

1/1/100 to 12/31/9999

Object

picture and OLE object

N/A

Variant

any of the preceding data type

N/A

How to see the place and size of the object at toolbar

How to see the place and size of the object at toolbar

- The toolbar is showing the place and size of the selected object.


How to show the property window at toolbar

How to show the property window at toolbar

- To show the property window.