You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

Name

Type

Data Type

Description

Result

*Result (Optional)

String

Resulting 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

  • No labels