Developer's reference PB2XLS for PowerBuilder

Reference > N_XLS_WORKBOOK_V97 > of_set_codepage

of_set_codepage() method

Set the code page for workbook. The default code page is ANSI.
This option is ignored for Excel97

Syntax

workbook.of_set_codepage(codepage)

Parameters

CodepageThe unsigned integer whose value is the number of the code page you want to set

Return value

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

Examples

book.of_set_codepage ( 1252 ) //set ANSI code page
book.of_set_codepage (  32768 ) //set Apple Macintosh code page