Share via


SCX to HTML Foundation Class

Category Internet
Default Catalog Visual FoxPro Catalog\Foundation Classes\Internet
Class _scx2html
Base Class Custom
Class Library _internet.vcx
Parent Class _custom
Sample ...\Samples\Solution\Ffc\dohtml.scx

Remarks

This class converts a Visual FoxPro form (.scx) to HTML. This class provides properties to control the scope, visual layout, and HTML generation. For more information, see Genhtml.prg.

To use, drop the class on a project or form or, from the Component Gallery Item Shortcut Menu, select Add to Project or Add to Form. When you add the class to a form, Visual FoxPro opens a builder so you can accept the current values or specify the appropriate cSource, cOutFile, and nGenOutput values. When you drop the class on a project, you can choose between adding the class or creating a subclass.

See Guidelines for Using Visual FoxPro Foundation Classes for more information on using foundation classes.

Properties, Events, Methods Description
cOutfile property Specifies the name of the HTML file to
output.
Default: ""
cScope property Specifies the scope (for example, NEXT or
ALL, for the output).
Default: ""
cSource property Specifies the source .scx file from which
to generate the HTML file.
Default: ""
cStyle property Specifies the visual style as listed in the
ID field of Genhtml.dbf.
Default: ""
lAutonameoutput property Specifies whether _GENHTML to
automatically names the output file
based on its source.
Default: .T.
nGenOutput property Specifies the _GENHTML output option.
0 = Generate an output file.
1 = Generate and display an
output file in Visual FoxPro editor.
2 = Generate and display an
output file in Internet Explorer.
3 = Generate and display an
output file after displaying a Save
As dialog box.
4 = Create a PUBLIC _oHTML
object and generate a file.
5 = Create a PUBLIC _oHTML
object without generating a file.

Default: 2

GenHTML method Generates HTML code by calling the
_GENHTML engine using properties
specified in cSource, cOutFile, and
nGenOutput.
Syntax: GenHTML( )
Return: none
Arguments: none

See Also

Guidelines for Using Visual FoxPro Foundation Classes | Visual FoxPro Foundation Classes A-Z | Visual FoxPro Foundation Classes