Compatible UTF16 Fixed Character Intrinsic Functions - AsFixedChar Method

Return as a fixed length string

Member of Compatible UTF16 Fixed Character Intrinsic Functions (PRIM_LIBI.ICompatibleNCharIntrinsics)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)StringResulting string

Details

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.

Example

#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?.

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2