|
of_updatetimerformat
|
|
Full name
|
pfc_w_statusbar.of_updatetimerformat
|
Access
|
public
|
Override of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_updatetimerformat(string)
|
Name
|
Datatype
|
as_format
|
string
|
Name
|
Datatype
|
ls_modifyexp
|
string
|
ls_rc
|
string
|
public function integer of_updatetimerformat (string as_format);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_UpdateDWTimerFormat
//
// Access: Public
//
// Arguments:
// ai_milliseconds The new Timer Format.
//
// Returns: Integer
// 1 if it succeeds and -1 if an error occurs.
//
// Description:
// Refreshes the Pre-Defined Datawindow Timer Format.
// This is used for the Timer Pre-Defined object only.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
string ls_modifyexp
string ls_rc
If IsNull(as_format) Then
as_format = ''
End If
// Create and Execute the Modify statment.
ls_modifyexp = "pfc_timer.Format='"+as_format+"'"
ls_rc = dw_statusbar.Modify (ls_modifyexp)
If Len(ls_rc) > 0 Then
Return -1
End If
Return 1
end function
Name
|
Owner
|
datawindow.modify |
datawindow
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.len |
systemfunctions
|