Developer's reference PB2XLS for PowerBuilder

Reference > N_XLS_FORMAT > of_set_text_wrap

of_set_text_wrap() method

Set the text wrap property.

Syntax

format.of_set_text_wrap ( option )

Parameters

optionA boolean value that controls whether text is wrapped

Return value

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

Description

Excel will adjust the height of the row to accommodate the wrapped text. A similar effect can be obtained without newlines using the of_set_align ( 'vjustify' ) method.

Examples

format.of_set_text_wrap( true )