cp115 发表于 2007-7-3 17:19

[Error] Unit1.pas(27): Declaration expected but 'IF' found

procedure TForm1.FormKeyPress(Sender: TObject; var Key: Char);<BR>if Key in ['v'] then<BR>begin<BR>if Clipboard.HasFormat(CF_BITMAP) then<BR>Image1.Picture.Bitmap.Assign(Clipboard);<BR>end;<BR>在这上面我没有引用ClipBrd但是出现标题错误的原因是什么?

anthony634 发表于 2007-7-4 13:14

<P>..................<BR>delphi的函数是if开头的么?</P>

页: [1]

编程论坛