Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adjust the distance chr(10) advances a new line
Message
From
11/10/2007 23:14:24
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
11/10/2007 22:57:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01260469
Message ID:
01260470
Views:
12
This message has been marked as a message which has helped to the initial question of the thread.
>Greetings all
>I have a routine that strings together several lines of an address utilizing the following syntax:
>
>.
>.
>.
>CASE empty(vendMast.payAddr2)
>     addr=vendMast.name+;
>     chr(10)+ vendMast.payAddr1+chr(10)+;
>     allt(vendMast.payCity)+" "+allt(vendMast.payState)+"  "+formattedZip
>.
>.
>.
>
>The address is just a bit too tall for a 4 lines address envelope window. If the space between the address lines is decreased, the envelope window will be large enough.
>
>Question: Is there a way to change the distance the chr(10) advances a line when chr(10) is invoked as it is above?
>
>I know I could make 4 labels and write each component of the address to a label, but I attempting to avoid that.
>
>thanks, Vince

If you print in graphics mode, perhaps you can choose a smaller font.

If you print in text mode, you might change the spacing between lines with appropriate printer codes (check the printer manual).
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform