by Ngwane (1 Submission)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 10th December 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Fast method for creating a folder. Note: -If you create a folder once and attempt creating it again, VB will show an error message. Therefore
API Declarations
'It could as well be a function and/or public and the procedural
'name need not be CreateFolder
Dim fso as New FileSystemObject
Dim fldr as Folder 'Note Folder is a reserved name
Set fldr= fso.CreateFolder(foldername)'foldername is the name of the folder you
'wish to create. You can pasas it by
'value or by reference in in a Sub or
'function's heading declaration as in
'this example
'unload objects from memory
Set fso= nothing
set fldr=nothing
Exit Sub
FolderError:
Exit Sub
End sub
No comments have been posted about Fast method for creating a folder. Note: -If you create a folder once and attempt creating it again. Why not be the first to post a comment about Fast method for creating a folder. Note: -If you create a folder once and attempt creating it again.