Equinox Online Help - Language Reference - A to Z

Home

ChangeRecordGroup

Applies to
SyntaxChangeRecordGroup GroupExpression
Action[Statement] Sets the ESS record group of the current record.
ScopeUsable anywhere.
Notes

The statement allows you to change the Equinox Security System (ESS) record group for the current record. The record is moved into the group whose number is specified by GroupExpression.

Note that if the user does not have access to the record's previous or new record group, then the operation is aborted. If the record group does not exist, an error number is stored in the system workarea SysError.

CategoryUser, groups and ESS
See Also ChangePassword, CurrentRecordGroup, FieldPermissions, FirstUserGroup, FirstUserName, UserCreate, NextUserGroup, NextUserName, RecordPermissions, SetUserGroup, ShowRecordGroup, UserAccountExpiry, UserDelete, UserDetails, UserGroup, UserName, UserPasswordExpiry, UserPermission
Example

This example sets the record group to be zero for salaries less than 10,000, one for 10-19,999, 2 for 20-29,999 and so on.

ChangeRecordGroup salary div 10000