Lingo Dictionary
181
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.
Examples
This statement deletes the first word of line 3 in the field cast member Address:
delete word 1 of line 3 of member "Address"
The same chunk of text may also be deleted with the syntax:
delete member("Address").line[3].word[1]
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
deleteAll
Syntax
list
.deleteAll()
deleteAll
list
Description
List command; deletes all items in the specified list without changing the list type.
Example
This statement deletes every item in the list named propList:
propList.deleteAll()
deleteAt
Syntax
list.deleteAt(
number
)
deleteAt
list
,
number
Description
List command; deletes the item in the position specified by
number
from the linear or property
list specified by
list
.
The
deleteAt
command checks whether an item is in a list; if you try to delete an object that
isn’t in the list, Director displays an alert.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...