Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

InternetData – PB Docs 2022 – PowerBuilder Library

InternetData – PB Docs 2022

InternetData

PowerScript function

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

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:

The blob contains the actual data and is not Unicode encoded,
therefore you must use the EncodingANSI! argument of the String
function.

See also

GetURL

PostURL


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x