Hi,
I have a variable:
var searchbuf: array of Char;
This is used to store data from a file and needs to be dynamic.
Later in the code I then try and cast it to a string with the following code:
tempString := String(searchbuf);
The compiler gives me the error '...Incompatible types: 'Array' and 'Char'.
Can anyone tell me how I can get this array of chars into a string. Any help would be much appreciated. Thanks in advance.
I have a variable:
var searchbuf: array of Char;
This is used to store data from a file and needs to be dynamic.
Later in the code I then try and cast it to a string with the following code:
tempString := String(searchbuf);
The compiler gives me the error '...Incompatible types: 'Array' and 'Char'.
Can anyone tell me how I can get this array of chars into a string. Any help would be much appreciated. Thanks in advance.