AV: when selecting a field
I installed OQB on delphi6. I compiled the bde demo and run it.
When I try to select a field from a table to be include in the sql statement
I get an AV at the line below. ( see ***** AV: HERE *******)
procedure TOQBLbx.ClickCheck;
var
iCol: Integer;
begin
inherited;
if FLoading then
Exit;
if Checked[ItemIndex] then
begin
TOQBForm(GetParentForm(Self)).QBGrid.Insert( // ***** AV: HERE *******
TOQBForm(GetParentForm(Self)).QBGrid.ColCount,
Items[ItemIndex], TOQBTable(Parent).FTableName);
end
When I try to select a field from a table to be include in the sql statement
I get an AV at the line below. ( see ***** AV: HERE *******)
procedure TOQBLbx.ClickCheck;
var
iCol: Integer;
begin
inherited;
if FLoading then
Exit;
if Checked[ItemIndex] then
begin
TOQBForm(GetParentForm(Self)).QBGrid.Insert( // ***** AV: HERE *******
TOQBForm(GetParentForm(Self)).QBGrid.ColCount,
Items[ItemIndex], TOQBTable(Parent).FTableName);
end
Comments
This error present constantly?
anyone got any ideas ?
Thankx in advance.
Anyone working on a fix?
I notice that after dropping in my much hacked Qbuilder.pas, which dates back to the days of Delphi 4, no such problem.
I've just placed an update at http://groups.yahoo.com/group/fastreport/f...51_MSAccess.zip
Be warned that this thing is very muched geared towards MS-Access, ie unsual table and field name delimiters, although you can easily change that be searching for
FmsAccess := True;
and changing it to
FmsAccess := False;
TIA
QBGrid.Parent := TabColumns;
in the event OnCreate of OQBForm
The problem is that TOQBForm.CreateParams if called before TabColumns is loaded. A professional fix is create a procedure Loaded in TOQBForm class which is called automatically after OQBForm is fully created. But is similar to my first fix.
huang zhi
上海