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>cxspace()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
cxSpace()
Returns/writes space character in escape-sequence format &npsp;
---------------------------------------------------------------------

Syntax:

  cxSpace( [< nCount >] )  --->  cString

Arguments:

  [<nCount>] is an optional numeric value which indicates the number of
  space characters to generate. The default is one.

Returns:

  A character string consisting the generated space characters in HTML
  escape-sequence format (&nbsp;).

Description:

  Generates from one to [<nCount>] space characters. One or more contiguous
  spaces are treated as a single space in normal HTML coding. The browser
  will display the string "abc     def" as "abc def". The browser will treat
  the escape-sequence "&nbsp;" as a space as many times as it is found.
  The string "abc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;def" will print as
  "abc     def". One space character is generated by default.

  The generated string is always returned. The string will be written
  to standard-out depending on the value of StopWrite().
  The default StopWrite() value is FALSE. Setting the StopWrite() value
  to TRUE will suspend the write to standard-out.

Examples:
  ...
  ...

  // Using cxSpace()
  htmlWrite( "abc" )        // --> "abc"
  csSpace( 5 )              // --> "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
  htmlWrite( "def" )        // --> "def"
                            // displayed by browser --> "abc     def"

  // Not using cxSpace()
  htmlWrite( "abc" )        // --> "abc"
  htmlWrite( space( 5 ) )   // --> "     "
  htmlWrite( "def" )        // --> "def"
                            // displayed by browser --> "abc def"
  ...
  ...

Alternate:

  htmlWrite( "&nbsp;" )
  htmlWrite( "&nbsp;&nbsp;" )

Files: Library is ClipX.Lib

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