Lingo Dictionary > D-F > delete |  |

delete

Syntax

    delete chunkExpression

Description

Command; deletes the specified chunk expression (character, word, item, or line) in any string container. Sources of strings include field cast members and variables that hold strings.

To see an example of `delete` used in a completed movie, see the Text movie in the Learning\Lingo Examples folder inside the Director application folder.

Example

This statement deletes the first word of line 3 in the field cast member Address:

    delete word 1 of line 3 of member "Address"

Example

The same chunk of text may also be deleted with the syntax:

    delete member("Address").line[3].word[1]

Example

This statement deletes the first character of the string in the variable `bidAmount` if that character is the dollar sign ("$"):

    if bidAmount.char[1] = "$" then delete bidAmount.char[1]

See also

`char...of`, `field`, `item...of`, `line...of`, `word...of`, `hilite (cast member property)`,`paragraph`