Foxtable(狐表)用户栏目专家坐堂 → 求 一段代码


  共有1969人关注过本帖树形打印复制链接

主题:求 一段代码

帅哥哟,离线,有人找我吗?
don
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:八尾狐 帖子:1812 积分:12999 威望:0 精华:14 注册:2008/10/11 18:07:00
  发帖心情 Post By:2015/7/24 0:32:00 [显示全部帖子]

Dim Names As String() = {"文本","文本","日期","文本","日期","文本","文本","日期","文本","日期","文本","文本","日期","文本","日期","文本","文本","日期","文本","日期"}
Dim aa ,s1,s2 As String
For Each Name As String In Names
    s1+=Name
    s2=s1
    Dim i As Integer= (s2.Length-s2.Replace(name,"").Length)/Name.Length
    If name = "文本" Then
        aa+=",D"  & i
    Else
        aa+=",T"    &  i
    End If
Next

Output.Show(aa.trim(","))

 回到顶部