of_SetInitialValue


pfcmain.pbl   >   pfc_u_calendar   >   of_SetInitialValue   

Full name pfc_u_calendar.of_SetInitialValue
Access public
Extend of integer
Return value integer
Prototype public function integer of_SetInitialValue(boolean)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_SetInitialValue (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  	of_SetInitialValue
//
//	Access:    	Public
//
//	Arguments:
//   ab_switch  A switch that determines if todays date should be set on the
//					requestor when an invalid date or no date is found on the requestor.
//
//	Returns:   		Integer
//   					1 if successful, otherwise -1
//
//	Description:  	
// Sets the switch that determines if an initial (todays date) value should be used 
// when an initial invalid value or no value is found on the requestor.
//
// *Note: The main behavior change through this attribute is in the row/column status.
//		For example,
//		A) The attribute is set to True.
//			1) The calendar is requested on a field that has no date.
//			2) The calendar dropsdown with todays date showing.
//			3) The field also displays todays date.  This means the column status may
//				be changed.  One possibility is from NotModified! to Modified!.
//		B) The attribute is set to False.
//			1) The calendar is requested on a field that has no date.
//			2) The calendar dropsdown with todays date showing.
//			3) The field continues to display empty.  This means the column status 
//				has not changed.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

// Check to see if the passed style number is valid.
IF IsNull(ab_switch) THEN 
	Return -1
End If

ib_initialvalue = ab_switch
Return 1
end function

     
Name Owner
pfc_u_tabpg_dwproperty_srvcalendar.pfc_propertyapply pfc_u_tabpg_dwproperty_srvcalendar

     
Name Owner
systemfunctions.isnull systemfunctions

     
Full name
No Data

     
Name Scope
No Data