STRFORMATNUMBER conditional strings fixed

0 views
Skip to first unread message

John Bridges

unread,
May 27, 2009, 10:09:41 PM5/27/09
to after...@googlegroups.com
New build of AfterGRASP is up for download:

http://www.aftergrasp.com/download/agsetup_20090527.exe

----------------------------------------------------------------------------
Wed, 27 May 2009

Bug in STRFORMATNUMBER not handling conditional strings correctly (it was
adding up the total number of digits required for all cases). Rewritten
to maintain counts for each possible case (negative, zero and positive).

Example:
drawclear white
format = "\"$\"#,##0;[Red]\-\"$\"#,##0"
s = -52720
messagebox strlist(@format,@s) strformatnumber(@format, @s)
exitnow

----------------------------------------------------------------------------

Reply all
Reply to author
Forward
0 new messages