Subject | RE: [IBO] simple question: how to end edit |
---|---|
Author | Stuart Hunt |
Post date | 2001-11-09T14:13:56Z |
Mirco,
simply call the cursor/queries post method:
ds.post
This should be followed by committing the transaction#
when you want to make the post permanent.
HTH,
Stuart Hunt
-----Original Message-----
From: mirco@... [mailto:mirco@...]
Sent: Friday, 09 November 2001 02:10 PM
To: IBObjects@yahoogroups.com
Subject: [IBO] simple question: how to end edit
Here is a simple question: When I manipulate datasets/queries in code
(adding, modifying rows) the actions are like this:
1. put dataset into edit mode (ds.edit)
2. change fields (ds...fields(..).value := xyz)
3. finish and post the changes
How do I do (3)? Am I supposed to call the transaction's commit
method? Which is the proper closing for a sequence started with .edit
or .insert?
Mirco
___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
simply call the cursor/queries post method:
ds.post
This should be followed by committing the transaction#
when you want to make the post permanent.
HTH,
Stuart Hunt
-----Original Message-----
From: mirco@... [mailto:mirco@...]
Sent: Friday, 09 November 2001 02:10 PM
To: IBObjects@yahoogroups.com
Subject: [IBO] simple question: how to end edit
Here is a simple question: When I manipulate datasets/queries in code
(adding, modifying rows) the actions are like this:
1. put dataset into edit mode (ds.edit)
2. change fields (ds...fields(..).value := xyz)
3. finish and post the changes
How do I do (3)? Am I supposed to call the transaction's commit
method? Which is the proper closing for a sequence started with .edit
or .insert?
Mirco
___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/