334
Chapter 12: Methods
getLast()
Usage
list.getLast()
getLast(
list
)
Description
List function; identifies the last value in a linear or property list specified by
list
.
Parameters
None.
Example
This statement identifies the last item, 22, in the list Answers, which consists of [10, 12, 15, 22]:
put Answers.getLast()
This statement identifies the last item, 850, in the list Bids, which consists of [#Gee:750,
#Kayne:600, #Ohashi:850]:
put Bids.getLast()
getLatestNetID
Usage
getLatestNetID
Description
This function returns an identifier for the last network operation that started.
The identifier returned by
getLatestNetID
can be used as a parameter in the
netDone,
netError,
and
netAbort
functions to identify the last network operation.
Note:
This function is included for backward compatibility. It is recommended that you use the
network ID returned from a net lingo function rather than
getLatestNetID
. However, if you use
getLatestNetID
, use it immediately after issuing the netLingo command.
Parameters
None.
Example
This script assigns the network ID of a
getNetText
operation to the field cast member Result so
results of that operation can be accessed later:
on startOperation
global gNetID
getNetText("url")
set gNetID = getLatestNetID()
end
on checkOperation
global gNetID
if netDone(gNetID) then
put netTextResult into member "Result"
end if
end
See also
netAbort
,
netDone()
,
netError()
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...