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

Compare with Current View Page History

Version 1 Current »

String Intrinsic Functions - CurChars Method
The number of characters in the string
Member of String Intrinsic Functions (PRIM_LIBI.ICommonStringIntrinsics)

Parameters

Name

Type

Data Type

Description

Result

*Result (Optional)

Integer

Returned number of characters

Details


CurChars returns the number of characters in a string.
In a single byte environment, CurChars and Cursize will return the same result.
In a DBCS environment each character requires two bytes, so although a string may be 8 bytes long, the number of characters will be 4 in ASCII and 3 in ECBDIC. Two bytes will be used by the shift in and shift out bytes.

See also

All Component Classes
Technical Reference

  • No labels