From Lazarus wiki
Revision as of 07:00, 23 February 2020 by Trev (Fixed syntax highlighting; removed categories included in template)
Back to data types.
var s: String; begin s := 'Test'; Application.MessageBox( PChar(s)),'Title', MB_OK ); end;
var p: PChar;
p := 'This is a null-terminated string.'; p := IntToStr(45);
p := 45;
The integer value is not casted to a PChar as might be expected.