
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipX.Lib v1.2 - <b>cxspace()</b>
[<<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 ( ).
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 " " as a space as many times as it is found.
The string "abc 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 ) // --> " "
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( " " )
htmlWrite( " " )
Files: Library is ClipX.Lib
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson