|
of_getdeletestyle
|
|
Full name
|
pfc_n_cst_tvsrv_levelsource.of_getdeletestyle
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_getdeletestyle(integer)
|
Name
|
Datatype
|
li_limit
|
integer
|
public function integer of_getdeletestyle (integer ai_level);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_GetDeleteStyle
//
// Access: Public
//
// Arguments:
// ai_Level The level of the treeview to get the information from.
//
// Returns: Integer
// DELETE_ROWS (1)
// DISCARD_ROWS (2)
// -1 - if error
//
// Description:
// Returns the delete style this level will use on it's immediate children
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 6.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.
//
//////////////////////////////////////////////////////////////////////////////
integer li_limit
// check arguments
If IsNull(ai_level) or (ai_level < 1) then Return -1
// Verify that this is a valid level
li_Limit = UpperBound(inv_attrib)
If ai_Level > li_Limit Then
// Allow for recursion
If Not inv_attrib[li_Limit].ib_Recursive Then Return -1
ai_Level = li_Limit
End If
return inv_attrib[ai_level].ii_Deletestyle
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.upperbound |
systemfunctions
|