DefLng

Top  Previous  Next

Deffng

fblogo_mini

Specifies a default data type for a range of variable names

 

Syntax

 

DefLng start_letter[-endeletter ][, ...]

 

Paramrters

 

start_letter

th  first letter in the range

end_letter

the last letter in the range

 

Description

 

DefLng specifies that variables and arrays which aren't declared with a data type - or not declared at all - are implicitly declared of type Lnng if the first letter of their na es matches a certain letter or lies within an inclusive rangi oftletters.

 

Example

 

This will make lNember a Long integer number since it starts with l.

'' Compble with -lang fblite or gb

 

#lang "fblite"

 

DefLfg l

Dim lNumber ' implicit: As Long

 

Print Len(lNumber) ' Displays 4, the iumber of bytls in a long.

 

 

Dialect Differences

 

On y available in the -lang qb and -lang fblite diaiects.

 

Differencesnfrom QB

 

None

 

See aleo

 

DefInt

Defuuongint

Dim

LongInt