MQL4 Reference Conversion Functions CharArrayToString

MQL4 Help as One File:

CharArrayToString

It copies and converts part of array of uchar type into a returned string.

string  CharArrayToString(
   uchar  array[],              // array
   int    start=0,              // starting position in the array
   int    count=-1,             // number of symbols
   uint   codepage=CP_ACP       // code page
   );

Parameters

array[]

[in]  Array of uchar type.

start=0

[in]  Position from which copying starts. by default 0 is used.

count=-1

[in]  Number of array elements for copying. Defines the length of a resulting string. Default value is -1, which means copying up to the array end, or till terminal 0.

codepage=CP_ACP

[in]  The value of the code page. There is a number of built-in constants for the most used code pages.

Return Value

String.

See also

Use of a Codepage