$w. Format

Writes standard character data.

Category: Character
Alignment: Left
Alias: $Fw.

Syntax

Arguments

w

specifies the width of the output field.

Default 1 if the length of the variable is undefined; otherwise, the length of the variable.
Range 1–32767

Comparisons

The $w. format and the $CHARw. format are identical, and they do not trim leading blanks.

Example

Statements1
Results1
----+----1----+----2
select put('#Cary',$5.);
#Cary
select put('#Cary',$f5.);
#Cary
select put(Carolina,$5.);
Carol
1The character # represents a blank space.

See Also