Equinox Online Help - Language Reference - A to Z

Home

StartEdit

Applies to
SyntaxStartEdit
Action[Statement] Allows you to edit a record in a form.
ScopeOnly usable in form methods, but not in subtables.
Notes

This statement switches the form into edit mode, allowing you to edit the current record. This statement has the same effect as selecting the Edit option from the form's Record menu. If the form is already in edit/ insert mode, an error number is stored in the system workarea SysError. After the statement is executed, the SysError system workarea may take one of the following values:

  • 0 The statement was executed successfully.
  • 1 An error occurred.
  • 2 The record is locked by another user, preventing editing.
CategoryRecord data entry
See Also Zoom, Find, FindText, GetFindValues, IsInsertMode, RestoreRecord, SaveRecord, SetFindValues, SetInsertMode, StartInsert, UpdateDisplay
Example

This example checks that the user is not already editing a record and then opens the current record for editing.

if SysMode = NoMode, ViewMode then
StartEdit
end if