SPC Function


SPC Function

Class

Microsoft.VisualBasic.FileSystem

Syntax

     Dim result As SPCInfo = SPC(count) 


count (required; Short)

The number of spaces to insert before outputting the next data value

Description

The SPC function inserts spaces between expressions in a Print or PrintLine procedure.

Usage at a Glance

  • SPC is generally only useful with the Print or PrintLine procedures.

  • If the SPC function moves the current position past the end of the output width, count is first reduced using the formula count Mod width. In some cases, this may still bring the print position to the next line.

  • Use the TAB function to format data in columns, starting at specific positions on each line.

Version Differences

In Visual Basic 2005, the My.Computer.FileSystem object provides more robust access to file management features.

See Also

Print, PrintLine Procedures, TAB Function




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

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