Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How would you do this?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How would you do this?
Miscellaneous
Thread ID:
00335909
Message ID:
00335909
Views:
53
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.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Next
Reply
Map
View

Click here to load this message in the networking platform