Developer's reference PB2XLS for PowerBuilder

Reference > N_XLS_FORMAT > of_set_locked

of_set_locked() method

Prevent modification of a cells contents

Syntax

format.of_set_locked ( option )

Parameters

optionA boolean value that controls whether cell is locked

Return value

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

Description

Cell locking is turned on by default. However, it only has an effect if the worksheet has been protected. See of_protect() method.

Examples

format.of_set_locked ( false )