Subject | BDE To IBO |
---|---|
Author | Duilio Foschi |
Post date | 2002-01-15T16:27:01Z |
I need to port an application to C/S and I am experimenting with FB and IBO.
I am using D3 and FB v. 1.
It is not clear to me how I should change the following lines that I have
in large number in the old version:
with CurTab do {CurTab was a TTable, soon to be a TIBOTable}
begin
IndexName:='des_art'; {1}
SetRangeStart;
FieldByName('des_art').AsString:=FndEdi.Text;
SetRangeEnd;
FieldByName('des_art').AsString:='zzz';
ApplyRange;
end;
If I comment out line {1}, ev will compile, but then I get the error
message: "des_art" is not indexed and cannot be modified".
Actually des_art is not the primary key, but I have build an index on it.
Any help ?
Please note that I'd like to retain - at first - the SetRange...ApplyRange
formula because changing to TIBOQuerys would take a long time.
Thank you
Duilio Foschi
I am using D3 and FB v. 1.
It is not clear to me how I should change the following lines that I have
in large number in the old version:
with CurTab do {CurTab was a TTable, soon to be a TIBOTable}
begin
IndexName:='des_art'; {1}
SetRangeStart;
FieldByName('des_art').AsString:=FndEdi.Text;
SetRangeEnd;
FieldByName('des_art').AsString:='zzz';
ApplyRange;
end;
If I comment out line {1}, ev will compile, but then I get the error
message: "des_art" is not indexed and cannot be modified".
Actually des_art is not the primary key, but I have build an index on it.
Any help ?
Please note that I'd like to retain - at first - the SetRange...ApplyRange
formula because changing to TIBOQuerys would take a long time.
Thank you
Duilio Foschi