T
tl9622
Unregistered / Unconfirmed
GUEST, unregistred user!
我的一个窗体是从另一个窗体继承来的,在这个窗体中,我使用如下的语句,却无效,请问
这是为什么,该如何解决
for i:=0 to ComponentCount-1 do
begin
if Components is TDBEdit then
TDbEdit(Components).ReadOnly:=Yn;
if Components is TDateTimePicker then
TDateTimePicker(Components).Visible:=not Yn;
if Application.Components is TDBLookupComboBox then
TDBLookupComboBox(Components).Enabled:=not Yn;
end;
这是为什么,该如何解决
for i:=0 to ComponentCount-1 do
begin
if Components is TDBEdit then
TDbEdit(Components).ReadOnly:=Yn;
if Components is TDateTimePicker then
TDateTimePicker(Components).Visible:=not Yn;
if Application.Components is TDBLookupComboBox then
TDBLookupComboBox(Components).Enabled:=not Yn;
end;