Lingo Dictionary > D-F > field |  |

field

Syntax

    field whichField

Description

Keyword; refers to the field cast member specified by `whichField`.

| When `whichField` is a string, it is used as the cast member name.
| When `whichField` is an integer, it is used as the cast member number.

Character strings and chunk expressions can be read from or placed in the field.

The term `field` was used in earlier versions of Director and is maintained for backward compatibility. For new movies, use `member` to refer to field cast members.

Example

This statement places the characters 5 through 10 of the field name entry in the variable `myKeyword`:

    myKeyword = field("entry").char[5..10]

Example

This statement checks whether the user entered the word desk and, if so, goes to the frame deskBid:

    if member "bid" contains "desk" then go to "deskBid"

See also

`char...of`, `item...of`, `line...of`, `word...of`