<<

Contents

Search

>>

 

STRTRIM$

 

 

Function

 

 

Syntax:

STRTRIM$(<Text>,<Length>,<Font Style>[,<Fontheight>])

 

<Text>

= <STRING-EXPRESSION>

<Length>

= <NUM-EXPRESSION>

<Font Style>

= <NUM-EXPRESSION>

<Fontheight>

= <NUM-EXPRESSION>

 

 

Meaning:

Returns as result the trimmed <Text>, so that <Text> needs a maximum of <Lenght> columns when <Text> is printed by PRINT on the screen.

 

<Length> specifies the maximum length as a multiple of columns.

 

<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.

 

Parameter:

Text

Text

Length

Maximum lenght of <Text> in columns.

Font Style

Style of font

Fontheight

Height of font

 

Sample:

TEXT$ = STRTRIM$("Hello",0,2.5)

// TEXT$ contains the text "Hello" which occupies

// a maximum of 2.5 columns

 

See also:

STR$

F_LEN

PRINTFONT

PRINTFONTHEIGHT

PRINT