10 6 6 AsFixedChar

LANSA Technical

10.6.6 AsFixedChar

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.

Input Parameters

None

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".

 

 Ý 10.6 Alphanumeric/String Intrinsic Functions