November 14, 2007, 05:38 PM
CarlfCOLUMN SPACING
How do you set the amount of blank space between columns? Can you vary it, having some column blanks bigger than others?
thanks,
carl
November 14, 2007, 06:00 PM
GinnyJakesPlease look up the SET SPACES setting. However, this does not give you variable spacing. For that you could create dummy fields and make their column titles null.
PRINT FLD1 DUMMY1 AS '' FLD2
.
.
ON TABLE SET SPACES 4
END
November 14, 2007, 06:28 PM
CarlfTHANKS
November 15, 2007, 08:46 AM
jgelonaDefault spacing is 2 spaces. Instead of using dummy fields you can use the following:
TABLE FILE CAR
PRINT CAR
MODEL IN +1
BODYTYPE IN +4
BY COUNTRY
END
This will give 2 spaces between COUNTRY and CAR, 1 space between CAR and MODEL and 4 spaces between MODEL and BODYTYPE.
November 15, 2007, 09:19 AM
mgrackinquote:
Originally posted by Carlf:
How do you set the amount of blank space between columns? Can you vary it, having some column blanks bigger than others?
Carl,
What is your output format? HTML or PDF? Is this WebFOCUS or plain old FOCUS output?
When dealing with HTML and PDF output formats, SET SPACES really does not apply anymore. An article I wrote for FocalPoint explains some of this.
http://www.informationbuilders.com/support/developers/htmlpdf.html