|
-
Apr 22nd, 2000, 12:15 PM
#1
I'm not having any luck with this one. I tried this line:
FileCopy("c:\autoexec.bat", "c:\desktop\autoexec.bat")
Visual Basic returns an error saying "Expected: =". The help doesn't make it look like there should be anything returned. What am I doing something wrong? Thanks.
-
Apr 22nd, 2000, 12:50 PM
#2
Lively Member
Remove the ()'s from the statement, or put Call in front of the statement. Whenever you include the ()'s vb expects that there is going to be a value returned and makes you assign the return value to a var.
-
Apr 22nd, 2000, 01:48 PM
#3
Thank you very much. I had been wondering for some time why some things had the parentheses and others didn't. I never new. Now it works like a charm.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|