Unicode Intrinsic Functions - AsValue Method

Return the variable as a value if SQLNull

Member of Unicode Intrinsic Functions (PRIM_LIBI.IUnicodeIntrinsics)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)Unicode StringResulting value
Default*Input (Optional)Unicode StringValue 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 = Xxxx) *or (#Variable.IsSqlNull)
...
AsValue allows the following
If (#Variable.AsValue(Xxxx))
...

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020