|
of_setvalue
|
|
Full name
|
pfc_u_calculator.of_setvalue
|
Access
|
protected
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
protected function integer of_setvalue(double,boolean)
|
Name
|
Datatype
|
li_day
|
Integer
|
li_FirstDayNum
|
Integer
|
li_month
|
Integer
|
li_rc
|
Integer
|
li_year
|
Integer
|
ls_newcell
|
String
|
protected function integer of_setvalue (double adbl_value, boolean ab_setrequestor);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetValue
//
// Access: Protected
//
// Arguments:
// adbl_value The value to set.
// ab_setrequestor Switch stating if the requestor object should get this value.
//
// Returns: Integer
// 1 if it succeeds and -1 if an error occurs.
//
// Description:
// Sets a new value. If appropriate, it will also set the requestor to get
// this new date.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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_rc = 1
Integer li_month
Integer li_year
Integer li_day
Integer li_FirstDayNum
String ls_newcell
// Check the argument(s).
If IsNull(adbl_value) Then
Return -1
End If
// Set the new date.
idbl_value = adbl_value
// If appropriate, set the requestor with the new date.
If ab_setrequestor Then
of_SetValueOnRequestor( string(idbl_value) )
End If
Return li_rc
end function