By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,943 Members | 1,875 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,943 IT Pros & Developers. It's quick & easy.

Save process through commondialog

P: 3
Can anybody help me to save a particular file from one system to another system through commondialog in vb6

Thanks

Abhijeet
Sep 11 '07 #1
Share this Question
Share on Google+
2 Replies


QVeen72
Expert 100+
P: 1,445
Hi,

it is :

Expand|Select|Wrap|Line Numbers
  1. CommonDialog1.ShowSave
  2.  
If any error occurs, then "Err" object is populated with number and description, u will have to take care of that.

REgards
Veena
Sep 11 '07 #2

Robbie
100+
P: 180
After that, CommonDialog1.FileName will contain the filename which the user wants to save the file as.

It depends on your program how exactly you use this. For example, for saving some text to this file, you'd use:
Dim FileID As Integer
FileID = FreeFile
Open CommonDialog1.Filename For Output As FileID
(Write some stuff to it here)
Close FileID


If you simply wanted to make a copy of one file as this new filename, you'd use
FileCopy OrigFilename, CommonDialog1.Filename
Sep 11 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.