|
of_setupdatestyle
|
|
Full name
|
pfc_n_cst_tvsrv_levelsource.of_setupdatestyle
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setupdatestyle(integer)
|
public function integer of_setupdatestyle (integer ai_style);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetUpdateStyle
//
// Access: Public
//
// Arguments:
// ai_style: The style for Updates.
// TOPDOWN
// BOTTOMUP
// TOPDOWN_BOTTOMUP
// BOTTOMUP_TOPDOWN
// CUSTOM
//
// Returns: Integer
// 1 if it succeeds and -1 if an error occurs.
//
// Description: Set the Update Style.
//
// Note: If CUSTOM is used, the of_UpdateCustom() function needs to be coded
// to provide the custom functionality.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
// Validate the argument.
If IsNull(ai_style) Then Return -1
CHOOSE CASE ai_style
CASE TOPDOWN, BOTTOMUP, TOPDOWN_BOTTOMUP, BOTTOMUP_TOPDOWN, CUSTOM
// Good value.
CASE ELSE
Return -1
END CHOOSE
// Set the update style.
ii_updatestyle = ai_style
Return 1
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|