of_isspace


pfcapsrv.pbl   >   pfc_n_cst_string   >   of_isspace   

Full name pfc_n_cst_string.of_isspace
Access public
Extend of boolean
Return value boolean
Prototype public function boolean of_isspace(string)

Name Datatype
No Data

Name Datatype
lb_null boolean

public function boolean of_isspace (string as_source);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_IsSpace
//
//	Access: 			public
//
//	Arguments:
//	as_source		The source string.
//
//	Returns:  		Boolean
//						True if the string only contains space characters. 
//						False if the string is empty or if it contains other
//						non-space characters.
//						If any argument's value is NULL, function returns NULL.
//
//	Description:  	Determines whether a string contains only space characters.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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(as_source) Then
	boolean lb_null
	SetNull(lb_null)
	Return lb_null
End If

//Check for an empty string
If Len(as_source)=0 Then
	Return False
End If

If Trim(as_source) = '' Then
	// Entire string is made of spaces.
	return True
end if

//String is not made up entirely of spaces.
Return False

end function

     
Name Owner
pfc_n_cst_sql.of_parse pfc_n_cst_sql
pfc_n_cst_string.of_lefttrim pfc_n_cst_string
pfc_n_cst_string.of_righttrim pfc_n_cst_string

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.len systemfunctions
systemfunctions.setnull systemfunctions
systemfunctions.trim systemfunctions

     
Full name
No Data

     
Name Scope
No Data