How to format text in a label?

Got a problem you cannot solve? Try here.
norbertjurkiewicz
Posts: 16
Joined: Thu Aug 02, 2012 11:07 am

How to format text in a label?

Postby norbertjurkiewicz » Mon Aug 06, 2012 2:02 pm

Hi,

I'd like to know how to format text that gets passed to a Dialog object from a variable.

I.e.

I have a variable

Code: Select all

Set Variable SYSTEM_MEMORY to
Get System Setting Total RAM Count (MB) into SYSTEM_MEMORY


In the Dialog label it displays as

16290MB

I'd like to display is as

16,290MB

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: How to format text in a label?

Postby FrancescoT » Tue Aug 07, 2012 5:46 am

Dear User,

please try if the following code helps you:

Code: Select all

~InstallAware Clipboard Data~
~MessageBox~
~{C65FC3D5-991A-48AF-BA1E-86AA80277604}~
~fileSize (edited)~
~E = $fileSize$~
~0~
~1~
~~
~End~
~{65A90C48-EE9F-4B88-AE72-0EE6585CDDF7}~
~End~
~{7A2AAFB9-A87A-4EDE-B34E-FC52E490D6E1}~
~Set Variable~
~{7293158F-8B5D-4A73-BB42-B63318676A55}~
~fileSize$MYAH$MYAH$FALSE~
~$first$,$second$~
~Parse String~
~{FBC5C374-5347-4CB8-8E48-A1E49366882B}~
~$fileSize$~
~1~
~first~
~second~
~2~
~FALSE~
~FALSE~
~Comment~
~{9E7CDF7C-26CA-4895-9A7E-9060B62C34F8}~
~between 1,000 9,999~
~Else~
~{E9D527CB-A582-4E25-986A-7CB054BAE0E8}~
~If~
~{7ED45C13-6953-46B2-BE68-C3AF9B125CBB}~
~fileSize~
~2~
~9999~
~FALSE~
~If~
~{99117E87-0A9E-4A36-823F-A8CBE03EF36E}~
~fileSize~
~2~
~999~
~FALSE~
~Set Variable~
~{9E964162-91C5-445A-9CB7-CBE168F4F574}~
~second$MYAH$MYAH$FALSE~
~~
~Set Variable~
~{31AC5326-0A04-4205-A3BF-EE3802757C25}~
~first$MYAH$MYAH$FALSE~
~~
~Comment~
~{99B38B45-1D8F-4F88-AA61-00ABA8AABAF0}~
~~
~MessageBox~
~{CC2C8C41-31BF-4D13-A90F-399F7E4EC85B}~
~filesize~
~F = $fileSize$~
~0~
~1~
~~
~Comment~
~{0A8782A9-1B67-4ACA-9D4E-56D47351314D}~
~~
~Mathematics~
~{5D67F2F1-0EC2-4108-A49E-CE48B78D823E}~
~$fileSize$~
~1048576~
~3~
~fileSize~
~Comment~
~{F9517A4C-F9AB-44B4-80CE-FCF49A30F206}~
~~
~Set Variable~
~{79C4904A-3A31-4A4B-BA96-B8348A9E4097}~
~fileSize$MYAH$MYAH$FALSE~
~9589634592~


Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 72 guests