|
of_Update
|
|
Full name
|
pfc_u_tv.of_Update
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_Update(integer,boolean,boolean)
|
Name
|
Datatype
|
li_Cnt
|
Integer
|
li_Index
|
Integer
|
li_Start
|
Integer
|
public function integer of_Update (integer ai_level, boolean ab_accept, boolean ab_resetflag);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_Update
//
// Access: public
//
// Arguments:
// ai_Level The level for which to update its DataStore.
// If ai_Level is 0, all DataStores will be updated.
// NOTE: There is only one DataStore for all
// recursive levels. So if ai_Level is a recursive level,
// all levels using that DataStore will be updated.
// ab_Accept True - (default) perform an AcceptText prior to the update,
// False - do not perform an AcceptText.
// ab_ResetFlags True - (default) reset the status flags,
// False - do not reset the flags.
//
// Returns: Integer
// 1 - the level was updated successfully
// -1 - an error occurred
//
// Description: Update the DataStore associated with a level of the TreeView.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.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.
//
//////////////////////////////////////////////////////////////////////////////
Integer li_Index, li_Start, li_Cnt
li_Index = UpperBound(inv_ds)
If ai_Level = 0 Then
// Update all DataStores
li_Start = 1
Else
If ai_Level < li_Index Then
li_Index = ai_Level
End If
li_Start = li_Index
End If
// Update the level(s)
For li_Cnt = li_Start To li_Index
If inv_ds[li_Cnt].ds_obj.Update(ab_Accept, ab_ResetFlag) = -1 Then Return -1
Next
Return 1
end function
Name
|
Owner
|
datastore.update |
datastore
|
systemfunctions.upperbound |
systemfunctions
|