|
-
Mar 12th, 2001, 01:29 AM
#1
Thread Starter
Lively Member
Hi,
I have created my own public function to open up a file with a string type argument, and the function should let me know whether the file is open ok by setting the My function as true.
Public fundction Myfunction (filename as string) as Boolean
Well, I found that to use this function to open a file, I tried to pass the filename, I need to use MyFunction("Filename") and it works ok. But when I tried to use string variable to replace the fix file name, it just does not work. Say,
Dim myFileName as string
myFileName = "FileName"
If MyFunction(myFileName) = True then.........
It just ignore this as it never find the right file name.
Could you help ?
Thanks.
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
|