Developer's reference PB2XLS for PowerBuilder

Reference > N_XLS_FORMAT > of_set_script

of_set_script() method

Set the superscript/subscript property of the font.

Syntax

format.of_set_script ( style )

Parameters

styleThe integer whose value is script style

Return value

Integer. Returns 1 if it succeeds and -1 if an error occurs.

Description

Excel's script styles are shown in the following table:

StyleDescription
0Normal
1Superscript
2Subscript

Examples

format.of_set_script ( 1 )