以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 老师,请教一个变量引用的问题。 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=140397) |
-- 作者:etchun -- 发布时间:2019/9/4 22:47:00 -- 老师,请教一个变量引用的问题。 If File1 > "" And File2 > "" Then Dim yj As String = File1 & ".xls" Dim moban As String = File2 & ".xls" MessageBox.Show(yj) MessageBox.Show(moban) End If Dim copy As String = (ProjectPath & "Attachments\\Templates\\Files\\" & "& yj &") MessageBox.Show(copy) Dim r As Row = Tables("项目详细表").Current Dim b As String = r("项目名称") Dim c As String = r("项目类型") Dim d As String = r("项目编号") Dim report As String = (Vars("JobsPath") & d & b & "(" & c & ")" & ".xls") If FileSys.DirectoryExists(Vars("JobsPath")) Then FileSys.CopyFile("& copy &", "& report &",True) Else MessageBox.Show("未找到文件目录!", "错误") End If 各位老师,这个每次中途都报错,说找不到copy文件。请教一下该怎么修改?
[此贴子已经被作者于2019/9/4 22:52:33编辑过]
|
-- 作者:有点蓝 -- 发布时间:2019/9/5 8:19:00 -- Dim copy As String = ProjectPath & "Attachments\\Templates\\Files\\" & yj |
-- 作者:etchun -- 发布时间:2019/9/5 19:01:00 -- 回复:(有点蓝)Dim copy As String = ProjectPath &... 好的,谢谢 |