|
of_boolean
|
|
Full name
|
pfc_n_cst_conversion.of_boolean
|
Access
|
public
|
Extend of
|
boolean
|
Return value
|
boolean
|
Prototype
|
public function boolean of_boolean(integer)
|
Name
|
Datatype
|
lb_null
|
Boolean
|
public function boolean of_boolean (integer ai_val);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_Boolean
//
// Access: public
//
// Arguments:
// ai_val The integer to be converted to a boolean value.
//
// Returns: boolean
// The boolean representation of the integer value.
// If any argument's value is NULL, function returns NULL.
// If any argument's value is Invalid, function returns NULL.
//
// Description: Converts a integer value to a boolean.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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(ai_val) or (ai_val>1) or (ai_val<0) Then
Boolean lb_null
SetNull(lb_null)
Return lb_null
End If
If ai_val=1 Then
Return True
End If
Return False
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.setnull |
systemfunctions
|