查看单个帖子
旧 2009-04-13, 01:03 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】need to copy a file but get 9expected procedure, not variable.0 with help code

need to copy a file but get (expected procedure, not variable.) with help code?
from help i got this:
dim sourcefile, destinationfile
sourcefile = "srcfile" ' define source file name.
destinationfile = "destfile" ' define target file name.
filecopy sourcefile, destinationfile ' copy source to target.
i made this:
dim sourcefile, destinationfile
sourcefile = "s:\pdf print files\dlee\" & fname1 & " - dwg.pdf" ' define source file name.
destinationfile = "s:\temp\ipdp_files\" ' define target file name.
filecopy sourcefile, destinationfile ' copy source to target
but when i run it i get:
expected procedure, not variable.
can anyone help?
you will have named your module code name filecopy, so the function within it gets confused. renamed the module filename to filecopy1
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)