of_boolean


pfcapsrv.pbl   >   pfc_n_cst_conversion   >   of_boolean   

Full name pfc_n_cst_conversion.of_boolean
Access public
Extend of boolean
Return value boolean
Prototype public function boolean of_boolean(string)

Name Datatype
No Data

Name Datatype
lb_null Boolean

public function boolean of_boolean (string as_val);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_Boolean
//
//	Access:  		public
//
//	Arguments:
//	as_val			The string to be converted to a boolean value.
//
//	Returns: 		boolean
// 					The boolean value of the string.
//						If any argument's value is NULL, function returns NULL.
//						If any argument's value is Invalid, function returns NULL.
//
//	Description:  	Converts a string value to a boolean 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.
//
//////////////////////////////////////////////////////////////////////////////

Boolean lb_null
SetNull(lb_null)


//Check parameters
If IsNull(as_val) Then
	Return lb_null
End If

//Convert to uppercase
as_val = Upper(as_val)

Choose Case as_val
	Case 'TRUE', 'T', 'YES', 'Y', '1'
		Return True
	Case 'FALSE', 'F', 'NO', 'N', '0'
		Return False
End Choose

//Invalid input parameter
Return lb_null

end function

     
Name Owner
pfc_n_cst_filesrv.of_dstodirattrib pfc_n_cst_filesrv
pfc_n_cst_apppreference.of_restoreuser pfc_n_cst_apppreference
pfc_n_cst_apppreference.of_restoreapp pfc_n_cst_apppreference
pfc_n_cst_dwsrv_printpreview.of_getenabled pfc_n_cst_dwsrv_printpreview
pfc_n_cst_dwsrv_printpreview.of_getruler pfc_n_cst_dwsrv_printpreview
pfc_n_cst_dssrv_printpreview.of_getenabled pfc_n_cst_dssrv_printpreview
pfc_n_cst_dssrv_printpreview.of_getruler pfc_n_cst_dssrv_printpreview
pfc_n_tr.of_Init pfc_n_tr
pfc_n_tr.of_Init pfc_n_tr
pfc_n_cst_winsrv_preference.of_restoremenu pfc_n_cst_winsrv_preference
pfc_n_cst_winsrv_preference.of_restore pfc_n_cst_winsrv_preference
pfc_u_dw.rbuttonup pfc_u_dw
pfc_u_dw.pfc_printdlg pfc_u_dw
pfc_n_ds.pfc_printdlg pfc_n_ds
pfc_w_toolbars.dw_toolbars.itemchanged dw_toolbars

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.setnull systemfunctions
systemfunctions.upper systemfunctions

     
Full name
No Data

     
Name Scope
No Data