SaveDockingState

Description

Stores the MDI state in the registry.

Applies to

Window objects

Syntax

SaveDockingState ( regkey )

Argument

Description

regkey

The regkey argument is the registry key. If no entry for the key exists in the registry, one is created. Existing keys are overwritten.


Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs. If any argument's value is null SaveDockingState returns null.

Usage

You can set the application so that it saves the states of the open sheets. You should call this function when the application closes.

Examples

Save all sheets in register

integer li_rtn
string is_register = "Appeon\PowerBuilder\Examples\Docking\"
li_rtn = this.SaveDockingState (is_register)