Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Aligning multiple lines in Messagebox()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00361690
Message ID:
00361965
Vues:
14
Hi Pete,

While ago I was having the same problem, as you do right now. So, I ended with writting my own frmStatistics for this. I also added Print button to print a message. Take a look into UT Files section (frmStatistics, I believe).
BTW, recently I modified this form a little (just minor unsignificant changes), so if you want, send me a request, I'll e-mail the new version for you.

Hope this helps.

>Hello All,
>I'm trying to use Messagebox() to display multi line messages that contain formatted numerics, the problem I'm having is right aligning the numerics , this is one of the methods I've tried so far
>
>
>cText = ''
>nNumLines = 5
>
>For i - 1 to nNumLines
>    cText = cText + 'Some text goes here ' + Padl(nMyamount,15)
>    cText = cText + Padl(nMyotheramount,15) + Chr(13)
>EndFor
>
>the problem seems to be that the text/amounts can vary in length, I've tried using Str()/Trans()/Allt() with limited success, any ideas?
>
>
>*/ Typical data used
>
>cMessageText = 'Withdrawn value is '
>cMessageText = 'Total '
>
>nMyamount = 1234.66
>nMyamount = 23.66
>
>
>nMyotheramount = 1000000.22
>nMyotheramount = 1000.22
>
>
>I would like it to appear in messagebox as:
>
>
>Withdrawn value is 1234.66    23.66
>Total           1000000.22  1000.22
>
>
>
>
>Regards
>
>Pete Kane
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform