Foxtable(狐表)用户栏目专家坐堂 → 带数组的内部函数如何设置,并如何调用?


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

主题:带数组的内部函数如何设置,并如何调用?

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


加好友 发短信
等级:三尾狐 帖子:767 积分:6119 威望:0 精华:0 注册:2018/2/1 17:26:00
带数组的内部函数如何设置,并如何调用?  发帖心情 Post By:2018/8/29 20:15:00 [显示全部帖子]

内部函数:JMLSZ

'''======批量列设置保存=====

Dim e As Object = Args(0)

Dim nms() As String = Args(1)

Dim pth As String = ProjectPath & "Syscm\用户设置\" '设置保存路径

If FileSys.DirectoryExists(pth)  = False Then

    FileSys.CreateDirectory(pth)

Else

    'Dim nms() As String = {"Table1","Table2","Table3","Table4"}

    Dim cvs As String = ""

    For Each nm As String In nms

        cvs &=  e.Form.Controls(nm).Table.GetColVisibleWidth & chr(11)

    Next

    Dim form As String = e.Form.name

    Dim dd As String = pth & form & ".txt"

    FileSys.WriteAllText(dd, cvs.trim(chr(11)), False, Encoding.Default)

End If


调用函数:

Functions.Execute("JMLSZ",e,***)


Dim nms() As String = {"Table1","Table2","Table3","Table4"} 因为各个界面的table不一样,我想到每个界面上进行调整?


 回到顶部