Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipX.Lib v1.2 - <b>cxxout()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
cxxOut()
Writes a character string to standard-out - Same as htmlWrite()
---------------------------------------------------------------------

Syntax:

  cxxOut( <cText> )  --->  lSuccess

Arguments:

  <cText> is a character string to write to standard-out.

Returns: A logical value

Description:

  Writes a string from the CGI program to the web server via
  standard-out.

  cxxOut() is a shortcut name for htmlWrite().

  It's companion function cxOut() writes the string plus the carriage return
  / line feed characters.

Examples:

  Example 1: Using cxxOut() with other X-Hacker.orgfunctions

    function main()
      if !ClipXOpen()
        Quit
      endif
      header()

      htmlBeg()
      headBeg()
      TitleBeg("My Title")
      TitleEnd()
      headEnd()
      bodyBeg( 'bgcolor="white" ' )
      cxxOut( 'Hello World!' )
      bodyEnd()
      htmlEnd()
      ClipXClose()
    return(NIL)

  Example 2: Roll your own "Hello World"

    function main()
      if ! ClipXOpen()
        Quit // or Your end of application routine
      endif
      header()
      cxxOut( "<html><head><title>My Title</title></head>" +;
                '<body bgColor="white">Hello World</body></html>' )
      ClipXClose()
    return(NIL)

  Example 3: Using cxxOut() with the StopWrite() option.

    function main()
      Local i := 0
      Local aX := {}

      if !ClipXOpen( LDEBUG )
        Quit
      endif
      header()

      StopWrite( .t. )

      cxxOut( htmlBeg() + HeadBeg() )
      cxxOut( TitleBeg() + "My Test" + TitleEnd() )
      cxxOut( HeadEnd() + BodyBeg() )
      cxxOut( "Hello World" )
      cxxOut( BodyEnd() + htmlEnd() )

      ClipXClose()

    return nil

Files: Library is ClipX.Lib


See Also: cxOut() htmlWrite() StopWrite()

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