BBjHtmlView::getText

Description

In BBj 7.00 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.

BUI logoDWC logoRemarks

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

Example

rem ' BBjHtmlView::getText

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(50,50,400,200,"BBjHtmlView::getText",$00090083$)
window!.setCallback(window!.ON_CLOSE,"eoj")
html$ = "<html><head><style>p{margin:0;padding:0;}</style><title>BASIS</title></head>"
img$ = "https://www.basis.cloud/images/BusJGBetter.jpg"
html$ = html$ + "<body><img src="""+img$+""">"+$0a$
url$ = "https://documentation.basis.cloud/BASISHelp/WebHelp/bbjobjects/Window/bbjhtmlview/bbjhtmlview.htm"
html$ = html$ + "<p>This is a <a href="""+url$+""">BBjHtmlView</a>."
html$ = html$ + "</body></html>"
htmlview! = window!.addHtmlView(101,25,25,350,150,html$)
htmlview!.setCallback(htmlview!.ON_PAGE_LOADED,"page")
process_events

eoj:
  release

page:
  event! = sysgui!.getLastEvent()
  i = msgbox(event!.getText(),32768,event!.getEventName())
  print htmlview!.getText()
return
Example Type: BBj

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

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