<<

Contents

Search

>>

 

F_LEN

 

 

Function

 

 

Syntax:

F_LEN(<Text>,<Font Style>[,<Fontheight>])

 

<Text>

= <STRING-EXPRESSION>

<Font Style>

= <NUM-EXPRESSION>

<Fontheight>

= <NUM-EXPRESSION>

 

 

Meaning:

Returns as result the length of <Text>, if <Text> is printed by PRINT on the screen in the font <Font Style> and <Fontheight. The lenght is returned as floating point number as a multipe of the columns width.

 

<Font Style> is the number that is specified with the instruction PRINTFONT .

 

<Fontheight> defines the height of the font as a multiple of the row height. If this parameter is missing, the standard height of 1.0 applies.

 

If <Font Style> designates a Fixed Font and if <Fontheight> = 1.0, F_LEN is identical with the function LEN.

 

Parameter:

Text

Text

Font Style

Style of font

Fontheight

Height of font

 

Sample:

L = F_LEN("Hello World",0,1.5)

 

See also:

LEN

LPLEN

PRINTFONT

PRINTFONTHEIGHT

PRINT

STRTRIM$