Data.DB.TField.FocusControl
| [–] Properties | |
|---|---|
| Type: procedure function
| |
| Visibility: public | |
| Source: Data.DB.pas Data.DB.hpp
| |
| Unit: Data.DB | |
| Parent: TField | |
Delphi
procedure FocusControl;
C++
void __fastcall FocusControl();
Description
Forces a form's focus to the first data-aware component associated with the field object.
Call FocusControl to switch the focus of the form to a data-aware control associated with the field. Because it is possible that the field's value can change even if its associated data-aware control does not have the focus, calling FocusControl can aid in drawing attention to a new value when it fails to be validated.