vsflexgrid.colformat如何使用? vsflexgrid.colformat如何使用?我设置格式好像都没用! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Private Sub Form_Load() ' format numbers fg.ColFormat(1) = "#,###.##" ' number with thousand separators fg.ColFormat(2) = "#.###%" ' percentage fg.ColFormat(3) = "#,.##" ' thousands fg.ColFormat(4) = "Currency" ' thousands ' format booleans fg.ColDataType(5) = flexDTBoolean fg.ColFormat(5) = "Probably;Hardly" ' boolean ' format dates fg.ColFormat(6) = "ddd, mmmm d, yyyy" fg.ColFormat(7) = "Medium Date" fg.ColFormat(8) = "Medium Time" ' set some cells fg.TextMatrix(1, 1) = 1234.56 fg.TextMatrix(1, 2) = 0.5432 fg.TextMatrix(1, 3) = 125250 fg.TextMatrix(1, 4) = -1234.5 fg.TextMatrix(1, 5) = True fg.TextMatrix(1, 6) = #7/4/1969# fg.TextMatrix(1, 7) = #7/4/1969# fg.TextMatrix(1, 8) = #7/4/1969# ' display results: Dim i% Debug.Print "Format"; Tab(20); "Content"; Tab(40); "Display" Debug.Print "-----------"; Tab(20); "-----------"; Tab(40); "-------------" For i = 1 To 8 Debug.Print fg.ColFormat(i); Tab(20); _ fg.Cell(flexcpText, 1, i); Tab(40); _ fg.Cell(flexcpTextDisplay, 1, i) Next End SubThis code produces the following output:Format Content Display----------- ----------- -------------#,###.## 1234.56 1,234.56#.###% 0.5432 54.320%#,.## 125250 125.25Currency -1234.5 ($1,234.50)Probably;Hardly True Probablyddd, mmmm d, yyyy 04/07/1969 Fri, July 4, 1969Medium Date 04/07/1969 04-Jul-69Medium Time 04/07/1969 12:00 AM VB如何实现两个窗口的双面打印? VB6.0下如何动态更新RPT文本框的值? 求助:阿拉伯数字转成中国小写 帮忙改下代码 VB有没有选择目录的控件? 求助高手 帮忙 身份证识别系统 语言不限 最好是c或者vb vb socket通信长连接丢包问题? 能否推荐一本好的关于水晶报表的书/电子书,谢谢那! SQL语句中的WHERE在VB中用ADO怎样实现-------VB小菜鸟 作为一个VB程序员,我想知道,在数据库功能方面,是应该选择PB还是VB? 200元:安装在DOS下的软件,复制到另一个电脑不能正常使用,怎么办? VB的combo.text 是只读属性,我想把他赋空字符串怎么办?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货