Space Function

   
Space Function

Class

Microsoft.VisualBasic.Strings

Syntax

 Space(   number   ) 
number (required; Integer)

An expression evaluating to the number of spaces required

Return Value

A String containing number spaces

Description

Creates a string containing number spaces

Rules at a Glance

While number can be zero (in which case the function returns the empty string), runtime error 5, "Invalid procedure call or argument," is generated if number is negative.

Programming Tips and Gotchas

The Space function is most useful for creating a string buffer, an area where an external function can write data to be returned to the calling program.

   


VB.Net Language in a Nutshell
VB.NET Language in a Nutshell
ISBN: B00006L54Q
EAN: N/A
Year: 2002
Pages: 503

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net