Return as a fixed length string
Member of Compatible UTF16 Fixed Character Intrinsic Functions (PRIM_LIBI.ICompatibleNCharIntrinsics)
Name | Type | Data Type | Description |
---|---|---|---|
Result | *Result (Optional) | String | Resulting string |
Alphanumeric fields only. AsFixedChar returns a result of the same length as the definition of the subject of the intrinsic function rather than the length of the contents. Thus, when referring to a field of length 10, AsFixedChar will always return a value of 10 bytes regardless of the number of characters the field value contains.
#FullName := #GiveName.AsFixedChar + #Surname
In this example, where Givename is an alpha 20 containing the value ?Veronica?, and Surname contains ?Brown? the result would be ?Veronica Brown?.
Febuary 18 V14SP2