10 6 16 CharTypeAt

LANSA Technical

10.6.16 CharTypeAt

CharTypeAt is similar to ByteTypeAt in that it tests the type of byte in a string at a given index. This allows a string to be tested for DBCS and SBCS information. The difference is that it only ever returns SBCS and DBCS. Possible results are:

SBCS - Single byte character

DBCS - Double byte character

Input Parameters

Index - Byte position within the supplied string

Example

If (#String.CharTypeAt( 1 ) = DBCS)

 

Ý 10.6 Alphanumeric/String Intrinsic Functions