Boolean Intrinsic Functions - AsValue Method
Return the variable as a value if SQLNull
Member of Boolean Intrinsic Functions (PRIM_LIBI.IBooleanIntrinsics)
Name |
Type |
Data Type |
Description |
Result |
*Result (Optional) |
Boolean |
Resulting value |
Default |
*Input (Optional) |
Boolean |
Value to use when the variable is SQLNull |
AsValue allows you to better handle *SQLNull. Rather than having to test for a potential SQLnull, AsValue allows a variable to return a specified value.
Rather than having to test as below
If ((#Variable = True) *or (#Variable.IsSqlNull)
...
AsValue allows the following
If (#Variable.AsValue(True))
...
All Component Classes
Technical Reference