Dynamicweb 8 Documentation
SqlBool(Int32) Method

Integer representing a Boolean. 1 = True, 0 = False.
Returns a Boolean in the appropriate database format.
Syntax
'Declaration
 
Public Overloads Shared Function SqlBool( _ 
   ByVal Value As Integer _ 
) As String
public static string SqlBool( 
   int Value 
)

Parameters

Value
Integer representing a Boolean. 1 = True, 0 = False.

Return Value

True or False as strings for Access solutions, or 0 or 1 for SQL solutions
Remarks
The returned value is based on the database type set up for the particular solution. Used only for building sql strings, not for DataRows.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Database Class
Database Members
Overload List

Send Feedback