Author |
|
gg102 Senior Member
Joined: January 29 2013 Location: United States
Online Status: Offline Posts: 245
|
Posted: April 18 2018 at 09:56 | IP Logged
|
|
|
Dave,
I use a lot of strings in my app. I have figured out 2 of the mask/formatting characters. These are # and 0:
for a number of ".1"
# any digit other than 0. Used for dropping leading or trailing 0's
0 is used for digits including 0's.
% does something similar to #, but I'm not sure what.
string(.1,"###.##") results in ".1"
string(.1,"###.00") results in ".10"
string(.1,"##0.00") results in "0.10"
I'm sure there are other mask/formatting characters. Can you please either list them, or point me to a link of the other mask characters?
Is there a space fill character for leading 0's?
Thank you.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: April 18 2018 at 11:30 | IP Logged
|
|
|
gg,
Try this link: https://www.appeon.com/support/documents/appeon_online_help/ pb2017r2/pbug/ch21s04.html.
This is part of the online help for PowerBuilder (the language that PowerHome is written in) so alot of the documentation concerning the PowerHome functions (most of the ones that don't start with ph_) can be found there. From the above link, you can reference all the format masks including number, string, date, etc.
Hope this helps,
Dave.
|
Back to Top |
|
|
gg102 Senior Member
Joined: January 29 2013 Location: United States
Online Status: Offline Posts: 245
|
Posted: April 18 2018 at 11:35 | IP Logged
|
|
|
That's exactly what I was looking for.
Thanks Dave!
|
Back to Top |
|
|