diegojmap Posted August 12, 2016 Share Posted August 12, 2016 I'm testing the OnValidade ClientDataSet event, this code:TUniMainModule.ClientDataSet1CODIGOValidate procedure (Sender: TField);begin ClientDataSet1DESCRICAO.clear; if ClientDataSet1CODIGO.AsString = '01' then ClientDataSet1DESCRICAO.AsString: = 'first'; if ClientDataSet1CODIGO.AsString = '02' then ClientDataSet1DESCRICAO.AsString: = 'Second'; if ClientDataSet1CODIGO.AsString = '03' then ClientDataSet1DESCRICAO.AsString: = 'Third'; if ClientDataSet1CODIGO.AsString = '04' then ClientDataSet1DESCRICAO.AsString: = 'Room'; if ClientDataSet1CODIGO.AsString = '05' then ClientDataSet1DESCRICAO.AsString: = 'Fifth'; if ClientDataSet1CODIGO.AsString = '06' then ClientDataSet1DESCRICAO.AsString: = 'Sixth'; if ClientDataSet1CODIGO.AsString = '07' then ClientDataSet1DESCRICAO.AsString: = 'Seventh'; if ClientDataSet1CODIGO.AsString = '08' then ClientDataSet1DESCRICAO.AsString: = 'Eighth'; if ClientDataSet1CODIGO.AsString = '09' then ClientDataSet1DESCRICAO.AsString: = 'new'; if ClientDataSet1DESCRICAO.AsString = '' then begin MainForm1.MessageDlg ( 'Invalid Code', mtInformation [mbOK]); abort; end;end;The problem is that the type 0, it triggers the event, have some form of so trigger the event when I give Tab or Enter?Version 0.99.0.1169 Tryal Quote Link to comment Share on other sites More sharing options...
diegojmap Posted August 18, 2016 Author Share Posted August 18, 2016 It seems that validate fires every letter typed, is there any setting for this? I did not find it Quote Link to comment Share on other sites More sharing options...
easegura777 Posted August 30, 2021 Share Posted August 30, 2021 On 8/18/2016 at 8:37 AM, diegojmap said: It seems that validate fires every letter typed, is there any setting for this? I did not find it @Sherzod You can help us with this iussue? Sherzod Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 30, 2021 Share Posted August 30, 2021 Hello @easegura777, Could you please explain your case? Quote Link to comment Share on other sites More sharing options...
easegura777 Posted August 30, 2021 Share Posted August 30, 2021 Just now, Sherzod said: Hola @ easygura777, ¿Podría explicar su caso? My validations are in the OnValidate event of the field and the validation is done on each keystroke Quote Link to comment Share on other sites More sharing options...
easegura777 Posted August 30, 2021 Share Posted August 30, 2021 7 minutes ago, easegura777 said: My validations are in the OnValidate event of the field and the validation is done on each keystroke i still experience it! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.