Click or drag to resize

DbServer.Commit Method (Typed)

X#
Commit all changes to disk from the buffer, ensuring that all buffers are flushed.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VORDDClasses (in XSharp.VORDDClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD Commit() AS LOGIC
Request Example View Source

Return Value

Type: Logic
TRUE if successful; otherwise, FALSE.
Remarks
Sends a NotifyCompletion message, if successful.
If using in conjunction with an Unlock() method, then the Commit() method should be executed prior to the Unlock() method call. Using a Commit() when scanning numerous records can be a very slow process, thus you may want to limit your Commit() statements to every 10 or 20 records to speed up your process. Note that DBServer:Commit() can fail for many reasons, ranging from a lack of capability in the server to lock conflicts and technical problems, such as network crashes. Use the DBServer:Status property to determine the exact cause of the failure. DBCommit() Function
See Also