Hallo berbog, und wenn du mit string() typecastest?
Die Hilfe sagt aber das:
Zitat von
Delphi Hilfe:
You can mix long strings (AnsiString values) and null-terminated strings (PChar values) in expressions and assignments, and you can pass PChar values to functions or procedures that take long-string parameters. The assignment S := P, where S is a string variable and P is a PChar expression, copies a null-terminated string into a long string.
In a binary operation, if one operand is a long string and the other a PChar, the PChar operand is converted to a long string.
Gruß, Sebastian