Compatible Unicode Intrinsic Functions - CurSize Method

Length of the variable content in bytes

Member of Compatible Unicode Intrinsic Functions (PRIM_LIBI.ICompatibleUnicodeIntrinsics)

Parameters

Name Type Data Type Description
Result *Result (Optional) Integer Resulting length

Details

Cursize returns the number of bytes in a string.
 
In a single byte environment, Cursize and CurChars will return the same result.
 
In a DBCS environment each character requires two bytes. On an ASCII system, a three character DBCS string will require 6 bytes. On the IBM i, which uses EBCDIC, the shift in and shift out bytes add 2 to all byte length calculations.

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020