Space
 
Creates a string of a certain length filled with spaces spaces (" ")

Syntax

Declare Function Space( count As Integer ) As 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 WString *14
A="x"+Space(10)+"x"  'prints x             x


Dialect Differences

  • The string type suffix "$" is obligatory in the -lang qb dialect.
  • The string type suffix "$" is optional in the -lang fblite and -lang fb dialects.

Differences from QB

  • None

See also