Developer's reference PB2XLS for PowerBuilder

Reference > N_XLS_FORMAT > of_set_size

of_set_size() method

Set the font size.

Syntax

format.of_set_size ( fontsize )

Parameters

FontsizeThe integer whose value is the font size

Return value

Integer. Returns 1 if it succeeds and -1 if an error occurs. If argument value is NULL, of_create returns NULL.

Description

Default font size is 10.
Excel can only display fonts that are installed on the system that it is running on. Therefore it is best to use the fonts that come as standard such as 'Arial', 'Times New Roman' and 'Courier New'.

Examples

format.of_set_size ( 14 )