Lingo Dictionary > L-N > netTextResult() |
![]() ![]() ![]() |
netTextResult()
Syntax
netTextResult(
netID
)
netTextResult()
Description
Function; returns the text obtained by the specified network operation. If no net ID is specified, netTextResult
returns the result of the last network operation.
If the specified network operation was getNetText()
, the text is the text of the file on the network.
If the specified network operation was postNetText
, the result is the server's response.
After the next operation starts, Director discards the results of the previous operation to conserve memory.
When a movie plays back as an applet, this function returns valid results for the last 10 requests. When a movie plays back as a Shockwave movie, this function returns valid results for only the most recent getNetText()
operation.
Example
This handler uses the "netDone
and netDone"
functions to test whether the last network operation finished successfully. If the operation is finished, text returned by netTextResult
is displayed in the field cast member Display Text.
global gNetID on exitFrame if (netDone(gNetID) = TRUE) and (netError(gNetID) = "OK") then member("Display Text").text = netTextResult() end if end
See also
netDone()
, netError(), postNetText
![]() ![]() ![]() |