OldField

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

SetField (MetaScript Guide) Labels: field-access, function
OldField (MetaScript Guide) Labels: function, field-access
Field (MetaScript Guide) Labels: function, field-access

Labels

function function Delete
field-access field-access Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.