Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共3 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:字符窜连接问题

1楼
狐哥 发表于:2009/4/23 17:56:00
各位老师帮看看:

Dim T1,T2,T3 As Double
    dim ta,tb,tc as string
    T1 = tables("收据明细").Compute("Sum(金额)","币制 = 'USD'")
    T2 = tables("收据明细").Compute("Sum(金额)","币制 = 'RMB'")
    T3 = tables("收据明细").Compute("Sum(金额)","币制 = 'HKD'")
    if t1 > 0 then
        ta = "USD:" & format(T1,"#.00")
    end if
    if t2 > 0 then
        tb = "RMB:" & format(T2,"#.00")
    end if
    if t3 > 0 then
        tc = "HKD:" & format(T3,"#.00")
    end if
    rs.Text = "TOTAL: " & ta & "   " & tb & "   " & tc

显示的结果是对的,但系统说TA在赋值前被使用.哪如何更改如上代码呢.
2楼
狐狸爸爸 发表于:2009/4/23 18:02:00
 dim ta as string = ""
 dim tb as string = ""
 dim tc as string = ""
3楼
狐哥 发表于:2009/4/23 18:08:00
呀,不可以统计设置的吗,呵呵.
共3 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02344 s, 2 queries.