Allows to get the old field value when a new value is specified.
![]() | Removed since MetaScript 2.5 . |
Syntax
OldField( fieldName )
Parameters
Parameter | Description |
---|---|
fieldName | String name of the field whose old value is requested. |
Description
OldField is a top-level function and is not associated with any object.
You can use this function to get the value a field had before it was assigned a new value.
Examples
The example below shows how to prevent assigning of an invalid field value:
See Also
![]() |
![]() |
![]() |