Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How would you do this?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How would you do this?
Divers
Thread ID:
00335909
Message ID:
00335909
Vues:
56
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform