Clear main & connected

Command group Flag affected Reversible Execute on client Platform(s)
Files NO YES NO All


Clear main & connected


This command clears the memory of current records from the main file and any files connected to the main file. The windows are not automatically redrawn so you must follow it with a Redraw window-name command if you want the screen to reflect the current state of the buffer.

You can use Clear main & connected to release locked records to other users.


; Clear the current record buffer of file variables from fAccounts
; and any connected file classes if insert is cancelled
; $construct of window class
Set main file {fAccounts}
Prepare for insert
Enter data
If flag false
  Clear main & connected
End If