Subject RE: [IBO] Re: Cursor Unknown?
Author Alan McDonald
thanks Marco - yeh it was you before - I'll try these suggestions
Alan
PS - sorry for the top posting

-----Original Message-----
From: Marco Menardi [mailto:mmenaz@...]
Sent: Wednesday, 16 April 2003 8:10 AM
To: IBObjects@yahoogroups.com
Subject: [IBO] Re: Cursor Unknown?


Well, as previously suggested, the only time I had similar error was
for a transaction not started before use cursor APIFirst.
Check that the sequence is something like this:
( trsParametri is the transaction linked with the cursor
crsParamPgm is the cursor component)

if not trsParametri.Started then
trsParametri.Started := True;
crsParamPgm.APIFirst;
crsParamPgm.FieldByName('PARAMETRI').AssignTo(FParamPgm);
...

Jason suggested not to use APIFirst if you don't truly know what you
are doing, but use First instead, so you could change it also.
Also, use trsParametri.Started := True instead of StartTransaction, AFAIR.
regards
Marco Menardi