|
of_settimerformat
|
|
Full name
|
pfc_n_cst_winsrv_statusbar.of_settimerformat
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_settimerformat(string)
|
public function integer of_settimerformat (string as_format);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetTimerFormat
//
// Access: Public
//
// Arguments:
// as_format The new format to be used on a Timer object.
//
// Returns: Integer
// 1 if it succeeds and -1 if an error occurs.
//
// Description:
// Sets the new format to be used on a Timer Object.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
// Check arguments.
If IsNull(as_format) Then
Return -1
End If
// Set the new format.
is_timerformat = as_format
// Notify the GUI of a new value.
If IsValid(iw_statusbar) Then
iw_statusbar.of_updatetimerformat(is_timerformat)
End If
Return 1
end function