Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

VBScript Space Function

Returns a string consisting of the specified number of spaces.

Syntax: VBScript Space Function

Space(number)

Arguments: VBScript Space Function

number

The number of spaces you want in the string.

Remarks: VBScript Space Function

The following example uses the Space function to return a string consisting of a specified number of spaces:

Dim MyString

MyString = Space(10)   ' Returns a string with 10 spaces.

MyString = "Hello" & Space(10) & "World" ' Insert 10 spaces between two strings.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.