of_setrefreshrate


pfcwnsrv.pbl   >   pfc_w_statusbar   >   of_setrefreshrate   

Full name pfc_w_statusbar.of_setrefreshrate
Access public
Override of integer
Return value integer
Prototype public function integer of_setrefreshrate(integer)

Name Datatype
ai_seconds integer

Name Datatype
No Data

public function integer of_setrefreshrate (integer ai_seconds);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_setrefreshrate
//
//	Access:  public
//
//	Arguments:
//	ai_seconds  	The number of seconds between Pre-Defined object refreshes.
//
//	Returns:  Integer
// 1 if it succeeds and -1 if an error occurs.
//
//	Description:  
//	Reset the refresh rate for the Pre-Defined objects.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.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.
//
//////////////////////////////////////////////////////////////////////////////

If IsNull(ai_seconds) or ai_seconds < 0 Then
	Return -1
End If

// Store the value for later use.
ii_secondstorefresh = ai_seconds

// Reset the timer.
timer(ii_secondstorefresh,this)

// Force a timer event now.
this.Event Timer()

Return 1
end function

     
Name Owner
pfc_n_cst_winsrv_statusbar.of_open pfc_n_cst_winsrv_statusbar
pfc_n_cst_winsrv_statusbar.of_setrefreshrate pfc_n_cst_winsrv_statusbar

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.timer systemfunctions
pfc_w_statusbar.timer pfc_w_statusbar

     
Full name
No Data

     
Name Scope
No Data