This is a pathetically stupiid problem. Am trying to use filters. Am using C builder 2007/2010 and cannot seem to duplicate the delphi sample code
with SG1.Filter.Add do
begin
Column:=2;
Condition:='> 0';
end;
I don't know how to duplicate the function of the first line "with SG1.Filter.Add do" in C++.
I should have been more complete
with SG1.Filter.Add do
begin
Column:=2;
Condition:='> 0';
end;
I don't know how to duplicate the function of the first line "with SG1.Filter.Add do" in C++.
My limited understanding of Delphi is that the above is a convenience and the code could have
been written as
SG1.Filter.Add.Column:=2;
SG1.Filter.Add.Condition:='> 0';
When I try this in C Builder I get pointer errors
TFilterData *fd:
fd = grid->Filter->Add();
fd->Column = 2;
fd->Condition = ">0";