Integer Intrinsic Functions - AsValue Method

Return the variable as a value if SQLNull

Member of Integer Intrinsic Functions (PRIM_LIBI.IIntegerIntrinsics)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)IntegerResulting value
Default*Input (Optional)IntegerValue to use when the variable is SQLNull

Details

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.

Example

Rather than having to test as below
If ((#Variable = 123) *or (#Variable.IsSqlNull)
...
AsValue allows the following
If (#Variable.AsValue(123))
...

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2