|
-
Jan 17th, 2001, 11:12 PM
#1
Thread Starter
New Member
In a VB program, for a "new file" command, I need to create a file, but CreateFile is acting up. It doesn't stop the program, but doesn't create the file either. Here's the entire sub (in case I'm going about this the wrong way...)
Dim mfile$, blah As SECURITY_ATTRIBUTES
dialog.Action = 1
mfile$ = dialog.FileName
X = CreateFile(mfile$, &HC0000000, 0, blah, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, 0)
Open mfile$ For Input As #1
For i = 0 To 99
Write #1, vbNullString
Next
Call LoadMacros
Call LoadLBox
The sub hangs @ Open mfile$ where it returns that the file doesn't exist. Any suggestions?
Thanks,
[email protected]
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
|