Skip to main content
Version: 20 R7 BETA

MODIFY SELECTION

MODIFY SELECTION ( {aTable}{; selectMode}{; enterList}{; *}{; *} )

ParameterTypeDescription
aTableTableTable to display and modify, or Default table, if omitted
selectModeIntegerSelection mode
enterListBooleanAuthorize Enter in list option
*OperatorUse output form for one record selection and hide scroll bars in the input form
*OperatorShow scroll bars in the input form (overrides second option of first optional *)

This command is not thread-safe, it cannot be used in preemptive code.

Description

MODIFY SELECTION does almost the same thing as DISPLAY SELECTION. Refer to the description of DISPLAY SELECTION for details. The differences between the two commands are:

1. DISPLAY SELECTION and MODIFY SELECTION enable you to display the current selected records in list mode, or in the input form when you double-click on a record. Using MODIFY SELECTION, you can also modify the fields of the record in the input form when you double-click on it, if it is not already in use by another process or user, or in “Enter in List” mode (if it is authorized).

2. DISPLAY SELECTION loads the records in Read-only mode in the current process, which means that they are not locked for writing in the other processes. MODIFY SELECTION places all the records of the selection in Read-Write mode, which means that they are automatically locked for writing in other processes. MODIFY SELECTION frees the records when its execution is completed.

See also

DISPLAY SELECTION
Form event code
Sets