谁能告诉我,这是怎么回事?
NEW 一个工程,Add a editmask control called edtfrom and a button.
我在这两个事件中写道:
procedure TForm1.edtFromChange(Sender: TObject);
begin
if edtFrom.Modified then
showmessage('modifled')
else
showmessage('not modifled')
end;
procedure TForm1.BitBtn1Click(Sender: TObject);
const StrCaseMask = '99\-9\-99999;0;';
StrCCFNMask = '9999\-9999999;0;';
begin
edtFrom.EditMask := StrCaseMask;//OtherCaseNumDispMask,'-','\-',
end;
If I copy and paste to editmask, it will say modifed. But if I click the button to run the code to set mask, then I paste, it will say not Modifed. why??? who tell me?