User Guide

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()