CopyCharArrayToString

Declaration: TMatlab5WorkSpace.CopyCharArrayToString (MatIdx: integer; var Content: string): integer;
The method CopyCharArrayToString copies the one-dimensional character array (string) of the MatLab 5 workspace to the string Content. The parameter MatIdx specifies the index of the array to be copied (valid range: 1...NrOfCharArrays).

The function returns one of the following error codes:

 0 ... everything OK, Content is valid
-1 ... MatIDx is out of bounds