|
of_getdwtype
|
|
Full name
|
pfc_w_master.of_getdwtype
|
Access
|
protected
|
Override of
|
integer
|
Return value
|
integer
|
Prototype
|
protected function integer of_getdwtype(datawindow)
|
Name
|
Datatype
|
adw_dw
|
datawindow
|
Name
|
Datatype
|
ldw_pfc_dw
|
u_dw
|
protected function integer of_getdwtype (datawindow adw_dw);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_GetDWType
//
// Access: protected
//
// Arguments:
// adw_dw DataWindow to determine type for
//
// Returns: integer
// 2 = Datawindow is a PFC Datawindow that is Linked.
// 1 = Datawindow is a PFC Datawindow that is not using linkage service
// 0 = Datawindow is a not a PFC Datawindow.
// -1 = error
//
// Description:
// Determines the type of DataWindow specified
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 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.
//
//////////////////////////////////////////////////////////////////////////////
u_dw ldw_pfc_dw
// Check arguments
If IsNull(adw_dw) Or Not IsValid(adw_dw) Then Return -1
// Determine if this is a PFC Datawindow
IF adw_dw.TriggerEvent ( "pfc_descendant" ) = 1 THEN
// This is a PFC datawindow
ldw_pfc_dw = adw_dw
// A PFC Datawindow can either be Linked or NotLinked
IF IsValid ( ldw_pfc_dw.inv_Linkage ) THEN
// This is a PFC Datawindow that is Linked
Return 2
End If
// This is a PFC DataWindow that is not Linked
Return 1
End If
// This is a standard DataWindow
Return 0
end function
Name
|
Owner
|
powerobject.triggerevent |
powerobject
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|