BBjHtmlView::getText

Description

In BBj 7.0 and higher, this method returns the HTML code for the BBjHtmlView control.

Syntax

Return Value

Method

string

getText()

Parameters

None.

Return Value

Returns the underlying HTML code (i.e. text + HTML tags) for the BBjHtmlView control.

Remarks

In BUI, this returns only text that was set with setText.

Example

rem ' HtmlView getText() sample

sysgui = unt
open (sysgui)"X0"

sysgui!=BBjAPI().getSysGui()
window! = sysgui!.addWindow(100,100,800,670,"HtmlView",$00010003$)
htmlview! = window!.addHtmlView(101,10,10,780,300,html$)
htmlview!.setUrl("http://www.google.com")

label! = window!.addStaticText(102,10,330,550,15,"HtmlView!.getText()")
edit! = window!.addListBox(103,10,345,780,305,"")

CALLBACK(ON_CLOSE,APP_CLOSE,sysgui!.getContext())
CALLBACK(ON_PAGE_LOADED,PAGE_LOADED,sysgui!.getContext(),htmlview!.getID())

PROCESS_EVENTS
END


PAGE_LOADED:
edit!.setText(str(htmlview!.getText()))
return


APP_CLOSE:
RELEASE

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

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



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.