of_setdateformat


pfcmain.pbl   >   pfc_u_calendar   >   of_setdateformat   

Full name pfc_u_calendar.of_setdateformat
Access public
Extend of integer
Return value integer
Prototype public function integer of_setdateformat(string)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_setdateformat (string as_format);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_SetDateFormat
//
//	Access:    Public
//
//	Arguments:
//   as_format	The format to be used on dates being converted to strings..
//
//	Returns:  Integer
//		1 if it succeeds and -1 if an error occurs.
//
//	Description:  Sets the date format.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

// Validate argument.
If IsNull(as_format) or Len(Trim(as_format))=0 Then
	Return -1
End If

// Validate Reference.
If IsNull(idrg_requestor) or Not IsValid(idrg_requestor) Then
	Return -1
End If

is_dateformat = as_format
Return 1
end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
systemfunctions.len systemfunctions
systemfunctions.trim systemfunctions

     
Full name
No Data

     
Name Scope
No Data