|
of_ResetUpdate
|
|
Full name
|
pfc_u_tv.of_ResetUpdate
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_ResetUpdate(integer)
|
Name
|
Datatype
|
li_Cnt
|
Integer
|
li_Index
|
Integer
|
li_Start
|
Integer
|
public function integer of_ResetUpdate (integer ai_level);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_ResetUpdate
//
// Access: public
//
// Arguments:
// ai_Level The level for which to reset the update flags of 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.
//
// Returns: Integer
// 1 - the flags were reset successfully
// -1 - an error occurred
//
// Description: Reset the update flags for a 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.ResetUpdate() = -1 Then Return -1
Next
Return 1
end function
Name
|
Owner
|
datastore.resetupdate |
datastore
|
systemfunctions.upperbound |
systemfunctions
|