of_integer


pfcapsrv.pbl   >   pfc_n_cst_conversion   >   of_integer   

Full name pfc_n_cst_conversion.of_integer
Access public
Extend of integer
Return value integer
Prototype public function integer of_integer(boolean)

Name Datatype
No Data

Name Datatype
li_null Integer

public function integer of_integer (boolean ab_arg);//////////////////////////////////////////////////////////////////////////////
//
//	Function:		of_Integer
//
//	Access: 		 	public
//
//	Arguments:
//	ab_arg			The boolean argument to be converted to an integer value.
//
//	Returns: 		integer
//						The integer representation of the boolean value.
//						If any argument's value is NULL, function returns NULL.
//
//	Description:	Converts a boolean value to an integer value.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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(ab_arg) Then
	Integer li_null
	SetNull(li_null)
	Return li_null
End If

If ab_arg Then
	//True
	Return 1
End If

//False
Return 0

end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.setnull systemfunctions

     
Full name
No Data

     
Name Scope
No Data