BBjHtmlView::getUrl

Description

In BBj 7.00 and higher, this method returns the URL associated with this BBjHtmlView.

Syntax

Return Value

Method

string

getUrl()

Parameters

None.

Return Value

Returns the current URL of the BBjHtmlView control.

Remarks

None.

Example

rem ' BBjHtmlView::getUrl

url$ = "https://en.wikipedia.org"
sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(50,50,1000,600,"BBjHtmlView::getUrl",$00090083$)
window!.setCallback(window!.ON_CLOSE,"eoj")
htmlview! = window!.addHtmlView(101,25,25,950,550,url$,$$)
htmlview!.setCallback(htmlview!.ON_PAGE_LOADED,"loaded")
htmlview!.setUrl(url$)

process_events

eoj:
  release

loaded:
 event! = sysgui!.getLastEvent()
  info$ = "Loading: " + htmlview!.getUrl() + $0a$ + "Current: " + event!.getUrl()
  i = msgbox(info$,0,event!.getEventName())
return
Example Type: BBj

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.