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]

TRtf()

Rtf Class
---------------------------------------------------------------------------------

 Syntax

        oNg:=TRtf():New(<cFile>) --> oRtf  

 Arguments

        <cFile>   Name of the RTF file to create    

 Returns

        <oRtf>   An  instance of the TRtf Class    

 Description

      TRtf() is a class that creates the RTF Documentation Source  Code of
      the same name you pass to the constructor.
      The class methods are as follows:
      New(<cFile>)         Create a new instance of the TRtf class
      Close()              Close the create file
      WriteTitle(<cTopic>,<cTitle>)  Write the file title
      WritePar(<cPar>)     Write a paragraph
      WriteParBold(<cPar>) Same as WritePar(), but the text is bold
      WriteLink(<cLink>)   Write a link to another topic
      WriteHeader()        Write the RTF header
      EndPar()             Write the end paragraph delimiter

 Examples

      FUNCTION MAIN()

      LOCAL oRtf

      oRtf := TRtf():New( "rtf\harbour.rtf" )
      oRtf:WriteHeader()
      oRtf:WriteTitle( "Harbour Reference Guide" )
      oRtf:WritePar( "HARBOUR" ):Endpar()
      oRtf:WriteLink( "OverView" )
      oRtf:WriteLink( "License" )

      oRtf:WritePar( "See the Links Above" ):EndPar()
      oRtf:Close()
      RETURN Nil
  

Status

      Ready

 Compliance

      This is a new Harbour Tools class

 Platforms

      ALL



See Also: TNortonGuide()

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