Inside a Command button Click event I want the columns for NAME, PHONE and FAX to be in aligned in straight columns when displayed on screen or printed. But since NAME is variable length, that staggers the columns for PHONE and FAX.
I remember back in the old BASIC days you could put a ";" or TAB(n) between listed/printed variables and that would align them into columns. Is there a way to do it in VFP without playing games with NAME and padding it with trailing blanks?
SET SAFETY OFF
SET ALTERNATE TO '\data\temp\myreport.txt'
SET SAFETY ON
SET ALTERNATE ON
SET CONSOLE OFF
? ' NAME PHONE FAX'
SELECT mytable
SCAN mytable
? ' '+mytable.name+' '+mytable.phone+' '+mytable.fax
ENDSCAN
SET ALTERNATE OFF
CLOSE ALTERNATE
THISFORM.Refresh
Thanks for the help. I really appreciate it!
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site:
www.stephenkramer.comWould you believe Far Side Lite?
More than 270 original cartoons.