只需一步,快速开始
使用道具 举报
以下是引用wuheng在2005-10-15 12:22:00的发言: 接下来的问题: 想在金额栏那里随机加上人民币符号,如百位有数字,则在千位栏加¥,如千位有数字则在万位栏加,类推。要怎么做才能实现??请指教! 谢谢!! wuheng敬上
Public Function GetBit(BitNo As Integer, Value As Currency) As String If BitNo <= -Int(-Log(Value) / Log(10#)) - 1 Then GetBit = Int(CCur(Value / 10 ^ BitNo)) Mod 10 End Function
以下是引用hzdzykf在2005-10-25 19:41:00的发言: 在你的程序中插入一个模块,模块代码如下: Public Function GetBit(BitNo As Integer, Value As Currency) As String If BitNo <= -Int(-Log(Value) / Log(10#)) - 1 Then GetBit = Int(CCur(Value / 10 ^ BitNo)) Mod 10 End Function
以下是引用ey1001在2005-10-21 9:23:00的发言: LucasLynn, 你好,你的程序都觉得很独特。下面转换用通俗的说法其目的是什么呀 -Int(-Log(Value) / Log(10#)) - 1 Int(CCur(Value / 10 ^ BitNo)) Mod 10
本版积分规则 发表回复 回帖后跳转到最后一页
|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )
GMT+8, 2025-5-2 18:46 , Processed in 0.157895 second(s), 32 queries .
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.