DataSourceCreateWindow

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.

SalBoolean DataSourceCreateWindow( SalNumber nWhat,
		                SalString sWindowName )

Applications and the framework call the DataSourceCreateWindow method to initialize data transfer and create a window.

Parameters

Name Description
SalNumber nWhat Standard method parameter. Possible values are Const.METHOD_Inquire, Const.METHOD_Execute.
SalString sWindowName Name of window to create.

Returns

When nWhat = Const.METHOD_Inquire: the return value is TRUE if the window is included in the application, and the corresponding data source is available.
When nWhat = Const.METHOD_Execute: the return value is TRUE if the window is successfully created, FALSE otherwise.

Comments

Before creating the window, DataSourceCreateWindow calls DataSourcePrepareKeyTransfer to initialize data transfer.