Rss & SiteMap

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

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

标题:怎样在textbox中只显示绑定列的 "-" 后的数字 【初步搞定】

1楼
mr725 发表于:2009/3/1 17:22:00

就是象:单元格中的 "ABC-123"  ,在textbox中只显示 "123",数字位数不一定

[此贴子已经被作者于2009-3-1 19:46:54编辑过]
2楼
mr725 发表于:2009/3/1 19:44:00

搞定了enter事件中:(只是要进入textbox时才行)

Dim Multi As string = Tables("表").Current("列")
        Dim Values as String()
        Values = Multi.split("-")
            dim ss as string = (Values(0))
                ss = ""
            dim ss1 as string = (Values(1))
                  e.Form.Controls("textbox2").value = ss " & " ss1
                  e.Form.Controls("textbox2").Select()

        For Index As Integer = 0 To 0
            dim ss as string = (Values(Index))
                ss = ""
        For Index1 As Integer = 1 To 1
            dim ss1 as string = (Values(Index1))
        Next
             e.Form.Controls("textbox2").value = ss " & " ss1
        Next

[此贴子已经被作者于2009-3-1 19:46:07编辑过]
3楼
狐狸爸爸 发表于:2009/3/2 19:22:00

如果是帮定,可以参考DataParseDataFormat事件,实现起来更规范。

共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.