|
of_setdeletestyle
|
|
Full name
|
pfc_n_cst_tvsrv_levelsource.of_setdeletestyle
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setdeletestyle(integer,integer)
|
public function integer of_setdeletestyle (integer ai_level, integer ai_style);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetDeleteStyle
//
// Access: Public
//
// Arguments:
// ai_Level The level of the treeview to set the information for.
// ai_style specifies whether treeview children will be:
// DELETE_ROWS 1 - deleted
// DISCARD_ROWS 2 - discarded
//
// Returns: integer
// 1 = success
// -1 = error
//
// Description:
// Sets the delete style this level will use on it's immediate children
//
// Sets whether treeview item children being removed will be deleted or discarded
// used for RI (referential Integrity purposes.. delete or discard )
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
// Verify that this is a valid level
If ai_Level > UpperBound(inv_attrib) Then
Return -1
End If
// Validate arguments
CHOOSE CASE ai_style
CASE DELETE_ROWS, DISCARD_ROWS
// Good style.
CASE ELSE
Return -1
END CHOOSE
inv_attrib[ai_level].ii_deletestyle = ai_style
return 1
end function
Name
|
Owner
|
systemfunctions.upperbound |
systemfunctions
|