Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Working example of GetUrl()

657 views
Skip to first unread message

Brian

unread,
Apr 30, 1999, 3:00:00 AM4/30/99
to

Has anyone used guttural( ). I'm having trouble with this returning the
html. Any example or code snippet is greatly appreciated.

Thanks
Brian


Ramesh Sringeri

unread,
Apr 30, 1999, 3:00:00 AM4/30/99
to

Brian
Here is what you would need to do
1. Create a user object uo_internetdata inherited from internetresult
2. Create a publick user object function
integer internetdata(data blob) pass data by value
3. In the above function data will contain the HTML and U can parse it per
UR requirements. For testing put in the following code

MessageBox("HTML" String(data))

4. Create a window w_test which uses up_internetdata
5. declare an instance variable of the type uo_internetdata
uo_internetdata iuo_internetdata
and another of type Inet
Inet iInet_base

6. In open event of w_test create iuo_internetdata

7. Lets say U want to retrieve the HTML from www.sybase.com

8. Place a button on the w_test and in the clicked event of the button put
the following code

string ls_url

ls_url = "http://www.sybase.com"

GetContextService("Internet", iInet_base)

iInet_base.GetUrl(ls_url, iuo_internetdata)

At this point the HTML will be displayed in the message box

The above is a bare bones code U would write to get HTML from a URL using
GetURL. Modify per UR requirements

HTH
Ramesh

Brian <qu...@ocar.army.pentagon.mil> wrote in message
news:3729CD80...@ocar.army.pentagon.mil...

0 new messages