Clear main & connected

Command groupFlag affectedReversibleExecute on clientPlatform(s)
FilesNOYESNOAll

Syntax

Clear main & connected

Description

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.

Example

# 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