Macro Setup Options

See Specifying StarBasic Macro Options on page 151.

Choose Tools > Options > Browser > HTML and select the StarBasic option. You must select this option before you create any script that you want to saved in an HTML document.

Basic scripts have to be in the header of the HTML document. After you add the macro to the document, it will appear in the source text of the HTML document (in the header) with the following syntax (a "Hello World" example macro is used):

 <HEAD> (any additional content) <SCRIPT LANGUAGE="STARBASIC"> <!-- ' $LIBRARY: library_name ' $MODULE: module_name Sub test msgbox "Hello World" End Sub // --> </SCRIPT> </HEAD> 


OpenOffice. org 1.0 Resource Kit
OpenOffice.Org 1.0 Resource Kit
ISBN: 0131407457
EAN: 2147483647
Year: 2005
Pages: 407

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net