Space

Creates a string of a given length filled with spaces (" ")

Syntax
	KeyPgDeclareDeclare KeyPgFunctionFunction Space( KeyPgByvalByVal count KeyPgAsAs KeyPgIntegerInteger ) KeyPgAsAs KeyPgStringString

Usage
	result = Space[$]( count )

Parameters
	count
		An integer type specifying the length of the string to be created.

Return Value
	The created string. An empty string will be returned if count <= 0.

Description
	Space creates a string with the specified number of spaces.

Example
	Dim a As String
	a = "x" + Space(3) + "x"
	Print a ' prints: x   x

Dialect Differences
	* The string type suffix "$" is required in the CompilerOptlang-lang qb dialect.
	* The string type suffix "$" is optional in the CompilerOptlang-lang fblite dialect.
	* The string type suffix "$" is ignored in the CompilerOptlang-lang fb dialect, warn 
	  only with the CompilerOptw-w suffix compile option (or CompilerOptw-w pedantic compile 
	  option).

Differences from QB
	* None

See also
	* KeyPgWspaceWSpace
	* KeyPgSpcSpc
	* KeyPgStringFunctionString (Function)

