P
pengyg
Unregistered / Unconfirmed
GUEST, unregistred user!
大家好,请初学delphi,请教问题啊:定义指针并赋值后,如何使用ShowMessage显示出来呢?
procedure TForm1.Button1Click(Sender: TObject);
begin
A := '200' ;
pA := @A;
ShowMessage(pA);
end;
提示错误:Incompatible types :'String' and 'Pointer'
procedure TForm1.Button1Click(Sender: TObject);
begin
A := '200' ;
pA := @A;
ShowMessage(pA);
end;
提示错误:Incompatible types :'String' and 'Pointer'