A
Altitude
Unregistered / Unconfirmed
GUEST, unregistred user!
TForm1.DXDBGrid.DoubleClick(Sender:TObject);
begin
Form2:=TForm2.Create(nil);
Form2.FilterName:=Query1.Fields[2].AsString;
Form2.ShowModal;
Form2.Free;
end;
TForm2.FormShow(Sender:TObject);
begin
with Query1 do
begin
if Active then Close;
ParamByName('paYue').AsString:=FilterName;
** Open;
end;
当程序第一次执行到**时,正常,以后就出错:
“访问地址冲突”或“Invalid Class TypeCast”
如何解决?
end;
begin
Form2:=TForm2.Create(nil);
Form2.FilterName:=Query1.Fields[2].AsString;
Form2.ShowModal;
Form2.Free;
end;
TForm2.FormShow(Sender:TObject);
begin
with Query1 do
begin
if Active then Close;
ParamByName('paYue').AsString:=FilterName;
** Open;
end;
当程序第一次执行到**时,正常,以后就出错:
“访问地址冲突”或“Invalid Class TypeCast”
如何解决?
end;