delphi中怎样判断文本框中输入的是双引号procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char); begin if key=#34 then showmessage('输入的是双引号'); end; if key = '"' then 这样就行
对 那如果是这样的怎么判断呢。“汉字内容”也就是说判断文本框的是什么内容,然后正确就可以继续下一步的操作。该如何写,谢谢 if Edit1.Text = '"你好"' then ShowMessage('你也好!') else ShowMessage('?')