CommitCase Method (Python)
.CommitCase(). Commits changes to the current case in the current cursor. This method must be called for each case that is modified, including existing cases modified in write mode and new cases created in append mode.
- This method is available in write or append mode.
- When working in write mode, you advance the record pointer by calling the fetchone method. To modify the first case, you must first call fetchone.
- When working in append mode, the cursor is ready to accept values for a new record (using SetValueNumeric and SetValueChar) once CommitCase has been called for the previous record.
- Changes to the active dataset take effect when the cursor is closed.
For an example of using CommitCase in write mode, see the topic on write mode Write Mode (Python). For an example of using CommitCase in append mode, see the topic on append mode Append Mode (Python).