Developer's reference PB2XLS for PowerBuilder

Reference > N_XLS_FORMAT > of_set_underline

of_set_underline() method

Set the underline property of the font

Syntax

format.of_set_underline ( style )

Parameters

styleThe integer whose value is underline style

Return value

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

Description

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

StyleDescription
0No underline
1Single underline
2Double underline
33Single accounting underline
34Double accounting underline

Examples

format.of_set_underline ( 1 )