Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
I am trying to assign a PChar variable to a String Value,
eg,
Var
test1: PChar;
test2: String;
begin
test2 := 'This is a string';
I then want to do test1 := test2
but I get an error saying "Incompatible Types: 'String' and 'PChar'.
Anyone know how to get around this?
Thanks,
Barry
I am trying to assign a PChar variable to a String Value,
eg,
Var
test1: PChar;
test2: String;
begin
test2 := 'This is a string';
I then want to do test1 := test2
but I get an error saying "Incompatible Types: 'String' and 'PChar'.
Anyone know how to get around this?
Thanks,
Barry