I have a main form that controls the common elements of entering and editing data for different DBs. The frames are then unique to the data being entered. With the OnExit event for each data element, I check to make sure data was entered correctly and if is isn't, I want the program to stay on that field. However, TFrames do not have the ActiveControl property. I have tried this line of code in OnExit, but I get an error with it.
procedure Frame1.eDataOnExit( Sender : TObject );
begin
if ( eData.Text = '' ) then
Form1.ActiveControl := eData;
end;
procedure Frame1.eDataOnExit( Sender : TObject );
begin
if ( eData.Text = '' ) then
Form1.ActiveControl := eData;
end;