Data.DB.TField.FocusControl

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure FocusControl;

C++

void __fastcall FocusControl();

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.DB.pas
Data.DB.hpp
Data.DB TField

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.

See Also