Description
Processes the HTML data returned by a GetURL or PostURL function. The Context object calls this function; you do not call this function explicitly. Instead, you override this function in a customized descendant of the InternetResult standard class user object.
Applies to
InternetResult objects
Syntax
servicereference.InternetData ( data )
Argument |
Description |
---|---|
servicereference |
Reference to the Internet service instance |
data |
Blob containing the complete data requested by a GetURL or PostURL function |
Return value
Integer.
Returns 1 if the function succeeds and -1 if an error occurs.
Usage
Override this function in a user object that is a descendant of InternetResult. The overridden function must contain one argument of type blob, which is passed by value. It should return an integer, processing data as appropriate for the situation.
Do not call this function explicitly
Do not code calls to this function. The GetURL and PostURL functions include an argument that references an instantiated InternetResult descendant. When these functions complete, the Context object calls the InternetData function, returning HTML in data.
Examples
This example shows code you might use in an overridden InternetData function to display data from a GetURL function:
MessageBox("HTML from GetURL", & String(data, EncodingANSI!)) RETURN 1
The blob contains the actual data and is not Unicode encoded, therefore you must use the EncodingANSI! argument of the String function.
See also