|
of_setrequestor
|
|
Full name
|
pfc_n_cst_dwsrv_resize.of_setrequestor
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setrequestor(u_dw)
|
Name
|
Datatype
|
COMPOSITE
|
string
|
ls_describeret
|
string
|
RTE
|
string
|
public function integer of_setrequestor (u_dw adw_requestor);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetRequestor
//
// Access: Public
//
// Arguments:
// adw_Requestor The datawindow requesting the service
//
// Returns: Integer
//
// Description: Associates a datawindow control with a datawindow service NVO
// by setting the idw_Requestor instance variable.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 6.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1999 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
string ls_describeret
constant string COMPOSITE='5'
constant string RTE='7'
// Validate the reference.
If IsNull(adw_Requestor) or Not IsValid(adw_Requestor) Then
Return -1
End If
// Confirm this datawindow does not contain an unsupported object.
ls_describeret = adw_Requestor.Object.DataWindow.Processing
//0 Form, group, query, or tabular
//1 Grid, 2 Label, 3 Graph, 4 Crosstab
//5 Composite, 6 ole, 7 rte
If ls_describeret=COMPOSITE or ls_describeret=RTE Then
Return -1
End If
idw_Requestor = adw_Requestor
Return 1
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|