以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]如何设计动态文件存储路径  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=88385)

--  作者:xvkewen
--  发布时间:2016/8/1 23:51:00
--  [求助]如何设计动态文件存储路径
我现在一张表中有三个字段,分别是的“一级部门”(字符形),“二级部分”(字符形),“附件”(备注形——扩展为多文件形),能不能让在Filemanager的增加按钮添加的文件自动保存在projectpath&"\\\\一级部门\\二级部门\\"目录下;请问该怎么做呢?急~急~

我做了个例子,但不知道怎么上传不上来;所以就只能上传到百度云了;http://pan.baidu.com/s/1qYaRjVA
[此贴子已经被作者于2016/8/2 0:03:24编辑过]

--  作者:xvkewen
--  发布时间:2016/8/2 10:26:00
--  
拜请大神笠临指导~
--  作者:Hyphen
--  发布时间:2016/8/2 11:03:00
--  
参考:http://www.foxtable.com/webhelp/scr/2638.htm

If e.DataCol.name = "附件" Then
    
If e.DataRow.IsNull("一级部门") = False andalso e.DataRow.IsNull("二级部门") = False
        e.path =  
projectpath & e.DataRow("一级部门") & "\\" & e.DataRow("级部门")
    End 
If

End
 If