Subject | Re: [IBO] Problems with EOF |
---|---|
Author | Lucas Franzen |
Post date | 2005-11-08T11:22:34Z |
Set,
Svein Erling Tysvær schrieb:
But nevertheless FIRST is a valid option for a TIB_Query to place it on
the first record (if it's already opened; I'm not sure if it wioll pen
it, since I don't use it) :-)
I just supposed that the query is already open and the pointer might be
at some point of the records.
I don't like walking through quries and editing them (and in fact if
then I'd have a DisableControls .. EnableControls in a try..finally block).
Let queries show data, and edit data if you have a single record,
otherwise let it be done with TIB_DSQL since it's ways faster (and
easier to code and review) ...
Luc.
Svein Erling Tysvær schrieb:
> One thing surprises me a little, Lucas. I thought Jason said that weYes this is true.
> should use First with TIB_Cursors and Open with TIB_Queries - have I
> misunderstood, or doesn't it matter?
But nevertheless FIRST is a valid option for a TIB_Query to place it on
the first record (if it's already opened; I'm not sure if it wioll pen
it, since I don't use it) :-)
I just supposed that the query is already open and the pointer might be
at some point of the records.
>Yes, this is the way I'd do it, too.
> Another thing is that I don't quite understand why Pete would use a
> query component, using a TIB_DSQL with an update statement would in my
> opinion be the way to go if the code is as simple as this.
I don't like walking through quries and editing them (and in fact if
then I'd have a DisableControls .. EnableControls in a try..finally block).
Let queries show data, and edit data if you have a single record,
otherwise let it be done with TIB_DSQL since it's ways faster (and
easier to code and review) ...
Luc.