Post Method
Description
Writes all changed values to database.
Syntax
Visual Basic
Public Sub Post( _
   Optional ByVal UndoOnFailure As Boolean = True _
) 
Parameters
UndoOnFailure

If True, then all changes to the object in memory are rolled back if the Post fails.

If False, failure of the Post does not effect the values in memory.

Remarks

Call Post after creating or changing an object and before the object is released. Objects are released in many ways, for example: by going out of scope, by ending the connection, or by being explicitly released in your code.

Objects of classes that implement the IBaseField2 Object have an AutoUnlock Property. If AutoUnlock is true the object is unlocked on a Post operation. If AutoUnlock is false, the object remains locked from the call to LockObject until a call to UnlockObject or until the connection is logged off the project.

By default, AutoUnlock is true.

See Also