| relational operators | Index Level | REM |
| Syntax | RELEASE {file.variable,} {id.expression} |
| Category | BASIC |
| Type | Statement |
| Description |
releases (clears) items locked with a previous "matreadu", "readu" or "readvu" statement.
If the "file.variable" and "id.expression" are both omitted, all items currently locked by the current process are unlocked. If the "id.expression" is specified without the "file.variable", the default file.variable is used. |
| Options | |
| See Also | statements & functions default file variables file.variable WRITEVU MATWRITE unlock-item unlock-group MATREAD READV id.expression |
| Example |
readu item from customer.file,item.id then
input name if name # '' then item<1>=name item<20>=date() write item on customer.file,item.id end else release customer.file,item.id end end In this example, an item is read from the "customer.file" and locked. If a new name is entered, the name attribute is changed, a date stamp is placed in attribute 20 and the item is written, automatically clearing the item lock. If no name is entered, no write occurs, requiring the item lock to be cleared with the "release" statement. |
| Warnings | |
| Compatibility | D3 7.0 AP R83 |
| relational operators | Index Level | REM |