Space Function

Tips >>ASP Functions


The Space function returns a string that consists of a specified number of spaces. The number argument is the number of spaces you want in the string. The Space function creates a string with the specified number of blank spaces.

Note :-
The HTML will only show one blank space on the same line.

The Syntax of the Space Function is :-

Space(number)

Its Description is :-

Parameter Description
number Required. The number of spaces you want in the string

Example#1 :-

Code :-
dim txt
txt=Space(10)
document.write(txt)
Output :-
" "

Example#2 :-

Code :-
<% ="Line above space." %>
<% =Space(13) %>
<% ="Line below space." %>
Output :-
Line above space.
Line below space.

 
News / Updates New version of cheque printing software is up. Can configure date in box. http://VirtualSplat.com/cp6.exe
E-mail : sales at virtualsplat dot com
Phone : +91 022 28067978