Format currency in a uitable in app designer
5 次查看(过去 30 天)
显示 更早的评论
I have a table with a column that has dollar amounts with $ sign and commas. I have created the values as strings:
"$ 1,111,111"; "$ 2,222" so that the commas will line up. When I send this to a table in app designer it strips out the leading spaces between the dollar sign and the number:
$ 1,111,111
$ 2,222
What I want is
$ 1,111,111
$ 2,222
Any suggestions?
0 个评论
采纳的回答
Walter Roberson
2025-5-1
编辑:Walter Roberson
2025-5-1
You need to specify the uitable FontName property, supplying a fixed-width font.
Your current problem is that spaces in proportion-width fonts are very thin compared to other characters.
Note: there is no way to specify a font name on a per-column basis, only the entire uitable at a time
3 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
