procedure set_text_state(var myPanel: TPanel
var myvalue: integer);
var
i: integer;
begin
if myvalue = 0 then
begin
for i := 0 to mypanel.ControlCount - 1 do // .ComponentCount - 1 do
if mypanel.Controls is TDBEdit then (mypanel.Controls as TDBEdit).Enabled := false;
end else
begin
for i := 0 to mypanel.ControlCount - 1 do // .ComponentCount - 1 do
if mypanel.Controls is TDBEdit then (mypanel.Controls as TDBEdit).Enabled := true;
end;
end;