of_isweekend


pfcapsrv.pbl   >   pfc_n_cst_datetime   >   of_isweekend   

Full name pfc_n_cst_datetime.of_isweekend
Access public
Extend of boolean
Return value boolean
Prototype public function boolean of_isweekend(date)

Name Datatype
No Data

Name Datatype
lb_null boolean

public function boolean of_isweekend (date ad_source);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_IsWeekend
//
//	Access:  		public
//
//	Arguments:
//	ad_source		Date to test.
//
//	Returns:  		boolean
//						True if the date is a weekend.
//						If any argument's value is NULL, function returns NULL.
//						If any argument's value is Invalid, function returns NULL.
//
//	Description:  	Given a date, will determine if the date is a weekend.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

//Check parameters
If IsNull(ad_source) or Not of_IsValid(ad_source) Then
	boolean lb_null
	SetNull(lb_null)
	Return lb_null
End If

Return Not of_IsWeekday(ad_source)
end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.setnull systemfunctions
pfc_n_cst_datetime.of_isweekday pfc_n_cst_datetime
pfc_n_cst_datetime.of_isvalid pfc_n_cst_datetime

     
Full name
No Data

     
Name Scope
No Data