Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour tools help- GT lib - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

THtml()

Html Class
---------------------------------------------------------------------------------

 Syntax

        oHtml:=THtml():New(<cFile>) --> oHtm  

 Arguments

        <cFile>   Name of the Html file to create    

 Returns

        <oHtm>   An  instance of the THtml Class    

 Description

      THtml() is a class that creates an .html file of the same  name you
      pass to the constructor.
      The class methods are as follows:
      New(<cFile>)         Create a new instance of the THtml class
      Close()              Close the created file
      WriteTitle(<cTitle>) Write the file title
      WritePar(<cPar>)     Writes a paragraph
      WriteParBold(<cPar>) Same as WritePar(), but the text is bold
      WriteLink(<cLink>,<cName>)  Write a link to another topic
      WriteText(<cText>)   Write any text

 Examples

      FUNCTION MAIN()

      LOCAL oHtm

      oHtm := THTML():New( "www\harbour.html" )
      oHtm:WriteTitle( "Harbour Reference Guide" )
      oHtm:WritePar( "HARBOUR" )
      oHtm:WriteLink( "OverView" )
      oHtm:WriteLink( "License" )
      oHtm:WriteLink( "http://www.gnu.org/copyleft/gpl" )
      oHtm:WritePar( "See the Links Above" )
      oHtm:Close()
      RETURN Nil
  </par>

Status

      Ready

 Compliance

      This is a new Harbour Tools class

 Platforms

      ALL



See Also: TCLASS()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson