Foxtable(狐表)用户栏目专家坐堂 → 读取数据替换问题


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

主题:读取数据替换问题

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:106080 积分:539499 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/2/14 10:09:00 [显示全部帖子]

显示表格数据?参考:
http://www.foxtable.com/mobilehelp/topics/0067.htm
http://www.foxtable.com/mobilehelp/topics/0074.htm

 回到顶部
帅哥,在线噢!
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:106080 积分:539499 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/2/14 13:30:00 [显示全部帖子]

使用动态函数:http://www.foxtable.com/webhelp/topics/1487.htm

Dim Code As string = "某单元格保存的代码"
Functions.Add(
"某名称",Code)
Functions.Complie()

调用此函数:

Functions.Execute("某名称")


 回到顶部
帅哥,在线噢!
有点蓝
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:106080 积分:539499 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/2/14 22:18:00 [显示全部帖子]

Dim e As RequestEventArgs = args(0)
Select Case e.Path
    Case "test.htm"
        Dim r As DataRow = DataTables("设置").SQLFind("页面 = 'test'")
        Dim Code As String = r("代码")
        Functions.remove("test")
        Functions.Add("test",Code)
        Functions.Complie()  '重新编译
        Functions.Execute("test",e)  '调用此函数
End Select

代码至少2句
Dim e As RequestEventArgs = args(0)
e.WriteString("OK")

 回到顶部