Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
2.6 and output
Message
De
10/03/2003 11:02:38
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
10/03/2003 10:52:32
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Titre:
Divers
Thread ID:
00763658
Message ID:
00763671
Vues:
18
>Hello all...
>
>Once again I am doing maintenance on a 2.6 program with no plans to update the code in the near future. I'm trying to get 2 lines of output to line up on the page it prints.
>
>The programs code:
>? name
>? address
>? city + ' ' + state
>
>However, I would like to add another address to the right hand side of the screen. When I do this, the left hand side of the new address is never straigt. I've tried swiching the code to:
>...

I prefer using "?" and "??". Consider this my personal preference - I may be wrong, but find it easier to manage.

I usually produce a text-file with "?" and "??", and then send printer codes + the text-file to the printer with "???".

"?" produces a line-break before producing output.

"??" continues in the same line.

You can use padr(), padl() and padc(), to produce fixed-length output. This may be important for some allignment situations.

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform