|
of_increment
|
|
Full name
|
pfc_u_progressbar.of_increment
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_increment(integer)
|
Name
|
Datatype
|
li_completion
|
integer
|
public function integer of_increment (integer ai_inc);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_increment
//
// Access: public
//
// Arguments:
// ai_inc value to increment the progress bar
//
// Returns: integer
// the new position of the progress bar
//
// Description:
// Increments the progress bar by ai_inc
//
//////////////////////////////////////////////////////////////////////////////
//
// 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_completion
if (ai_inc <= 0) or isnull(ai_inc) then
return -1
end if
// increment the position i = i+inc
ii_position += ai_inc
// display the change on the progress bar
return of_setposition(ii_position)
end function