Xbasic

A5_SHOW_HTML Function

Syntax

V a5_show_html(C htmltxt [,C dlg_title [,L flagUseShellExplorer [,* options [,L flagShowSourceTab [,C defaultTab [,L flagUseChrome ]]]]]])

Arguments

htmltxt

Text with HTML coding. Character

dlg_title

Character

flagUseShellExplorer

Logical

options

*

flagShowSourceTab

Logical

defaultTab

Character

flagUseChrome

Logical

Description

The A5_SHOW_HTML() function displays HTML text in the HTML Editor.

Examples 

Retrieve the Alpha Software home page.

dim alpha as P
alpha = http_get("http://www.alphasoftware.com/")
a5_show_html(alpha.body)

Search Google

dim search_term as C
dim google as P
search_term = ui_get_text("Search for...","What are you looking for?")
google = http_get("http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=" + urlencode(search_term) + "&btnG=Google+Search")
a5_show_html(google.body)

Limitations

Desktop applications only.

See Also