以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  请教下内部函数返回值  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=93248)

--  作者:1111111110
--  发布时间:2016/11/23 17:24:00
--  请教下内部函数返回值
--------------------内部函数-----------------------
Dim Tablename As String=args(0)
Dim lie As String=args(1)
Dim filter As String=args(2)

Dim Lists As List(of String)
Dim lis As String
lists=Tables(Tablename).DataTable.GetValues(lie,filter)
Lis= String.Join("|",Lists.ToArray)

Return lis
------------------正常的编写框里---------------------
内部函数Functions.Execute("动态加载列表",1,2,3)
Dim fname3 As WinForm.ComboBox = e.Form.Controls("ComboBox3")
fname3.ComboList="全部|" & lis

狐爸,请教下如何把lis的字符串返值回。。。

调试出现lis 没定义



--  作者:有点青
--  发布时间:2016/11/23 17:42:00
--  

 这样写

 

Dim fname3 As WinForm.ComboBox = e.Form.Controls("ComboBox3")
fname3.ComboList="全部|" & Functions.Execute("动态加载列表",1,2,3)