MethodExecute

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 MethodExecute( SalNumber nMethod, SalNumber nParameter )

The MethodExecute method is called by a commander to send a method execute request it's performer.

Parameters

Name Description
SalNumber nMethod Public message specifying a method id. For application-specific method, Const.PM_UserMethod should be used.
SalNumber nParameter Extra parameter for the method.

Returns

The return value is the method performers response.

Example

need to add c# coding

Combo Box: cmbState
On SAM_Click
   ! Repopulate form with objects of selected state only
   MethodExecute( PM_DataSourceUserWhere, SalHStringToNumber( 'sate =  :i_hWndFrame.frmOrders.cmbState' ) )
   MethodExecute( PM_DataSourcePopulate, POPULATE_Sinlge )
C# code
nWhere = 0;
MethodExecute(Const.PM_DataSourceUserWhere, nWhere);