Syntax
| TrmSetInterface protocol$
| ||||
---|---|---|---|---|---|
Description
| Activates the the preview webbrowser in the programmers' IDE.
NOTE: this method is deprecated to only support HTML based output in preview mode.
Sets the communications interface for the connected terminal. All other Trm-functions will work adapted according to the protocol set. Also, an escape-sequence is send to the user’s terminal to switch automatically to the selected interface, however, not all terminals support automatic interface-switching.
NOTE: To generate output directly back via the webserver, you can use TrmPrint, which allows you to include markup codes for page formatting. Or, you can use the HtmParseFile statement, which allows you to send a pre-formatted html page back thru the server, and include text replacements for output fields.
| ||||
See Also
| |||||
Example
| Sub Main
Dim Repl$
TrmSetInterface “HTML”
TrmPrint “Content-type: text/html”
TrmPrint “”
Repl$ = “#ADDRESS#|My Address” & vbCrLf & _
“#CITY#|My Old Town”
HtmParseFile “C:\htdocs\addresses.htm”, Repl$
End Sub
|