DataSet and "focused field"

You can use the Screen.ActiveControl property, verify whether it is a "known" data-aware control, and if so, obtain the field. For example:
Code:
if Screen.ActiveControl is TDBEdit then
  ShowMessage(TDBEdit(Screen.ACtiveControl).Field.Name);
This just checks for TDBEdits.

------------------
Marco Kalter
Allround Automations

[This message has been edited by mkalter (edited 01 October 2003).]
 
Back
Top