DataSourceClear

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalNumber DataSourceClear( SalNumber nWhat, SalNumber nParam )

Applications and the framework call the DataSourceClear method to clear a top-level window.

Parameters

Name Description
SalNumber nWhat Standard method parameter. Possible values are Const.METHOD_Inquire, Const.METHOD_Execute, Const.METHOD_GetType.
SalNumber nParam Options for the clear. Specify 0 for normal clear, Const.CLEAR_NotKeyList to clear data items but not record selection combo boxes.

Returns

Unknown

Comments

The DataSourceClear is the start of the clear process. It will check with the user to save any changes and then call method DataSourceClearIt to perform the actual clear.

Calling DataSourceClear will also clear all child data sources.

DataSourceClear is called automatically by the framework when a data source receives the Const.PM_DataSourceClear message.