谁能马上告诉我?????????easy!!!!!!!

fsp 2000-07-12 03:49:00
怎么转变label1.caption:='12345';—》label1.caption:='12,345.00'
给个例子。thank you!
...全文
146 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
手指英语 2000-07-12
  • 打赏
  • 举报
回复
有空再联系。 zwhc@sina.com
lowhand 2000-07-12
  • 打赏
  • 举报
回复
ok,没问题,email : 51windowsce@21cn.com
windows CE 那是临时的活,只是看看可行性,可能以后会改用VC,不过已不是由我负责了
手指英语 2000-07-12
  • 打赏
  • 举报
回复
lowhand
>>有机会交流一下,对了,你那 VB+Windows CE 问题解决如何了,有进展告知一声。
lowhand 2000-07-12
  • 打赏
  • 举报
回复
具体的是label1.caption:=formatfloat('#,##0.00',1234);
手指英语 2000-07-12
  • 打赏
  • 举报
回复
label.caption := formatFloat('#,###.00',strtofloat(label1.caption))
lowhand 2000-07-12
  • 打赏
  • 举报
回复
用formatfloat函数
fsp 2000-07-12
  • 打赏
  • 举报
回复
zyb:
thank you first.
我的意思是说怎么样把label.caption=字符形数字(char)如'1234567..'转成如'12,345,67.00'形财务数字,仍然用label.caption表示出来.
zyb 2000-07-12
  • 打赏
  • 举报
回复
var s : string ;
s := label1.caption ;
label1.caption := s[1]+s[2]+','+s[3]+s[4]+s[5]+'.'+s[6]+s[7] ;
fsp 2000-07-12
  • 打赏
  • 举报
回复
format???
用哪个函数好?

5,379

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧