Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Align the Memo field
Message
De
06/07/2022 08:03:12
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
06/07/2022 06:42:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
01684626
Message ID:
01684630
Vues:
48
>>I use Memo field as header, I centered it as
>>
>>      MyCafe Coffee Shop[Enter]
>>        Hillcrest Mall[Enter]
>>         Yonge Street[Enter]
>>           Toronto[Enter]
>>
>>On the receipt, it will print as:
>>
>>      MyCafe Coffee Shop 
>>        Hillcrest Mall 
>>         Yonge Street 
>>           Toronto
>>
>>But on the bill, I want it align as:
>>
>>MyCafe Coffee Shop
>>Hillcrest Mall
>>Yonge Street
>>Toronto
>>
>>Is that possible?
>
>I don't think you can do that in the report itself, but in the code that puts the data together, use ALINES() to bring the memo into individual lines, ALLTRIM() each one and put them back together.
>
>Tamar

@Jerry,

Aside what Tamar said, regexp might do in a single step, or an UDF called from the report that does the ALINES and LTRIM conversion. The regexp might work from the frx as well, if clever initialised.

Note. Such stuff is not recommended inside the frx sheet, since any processing in the frx often run many times, while outside only one time. You can do one time in frx's data environment, or before calling the frx at all.

Lutz
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform