Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple file selection

Status
Not open for further replies.

bebig

Technical User
Oct 21, 2004
111
US
Hi,
I am trying to select multiple files on CommonDilog, then convert it into .tcl.

My code can select one file then it converts into .tcl file and also can choose mutiple files. But the problem is when I convert those into tcl files, it does not work.

Would you please help me how I can solve this problem??

Thank you in advance

------------code-------------------
Private Sub Convert_Click()
Dim FileName As String

On Error Resume Next
CommonDialog1.Filter = "Web Files|*.htm;*.html"

CommonDialog1.Flags = cdlOFNAllowMultiselect + cdlOFNExplorer

CommonDialog1.FileName = ""
CommonDialog1.ShowOpen

'selected file
FileName = CommonDialog1.FileName

'MsgBox (FileName)

If FileName <> "" Then
'Clear Rich Text content

RichTextBox1.Enabled = False
RichTextBox1.Text = ""

Call ConvertFile(FileName)

RichTextBox1.Enabled = True
RichTextBox1.Refresh
SmartMenuXP1.MenuItems.Enabled(3) = True
SmartMenuXP1.MenuItems.Enabled(11) = True
SmartMenuXP1.MenuItems.Enabled(13) = True
SmartMenuXP1.MenuItems.Enabled(14) = True
SmartMenuXP1.MenuItems.Enabled(15) = True
SaveButton.Enabled = True

End If
End Sub
--------------------------------------


 
What does not work? Could you give details about the problem?

__________________________________________
Try forum1391 for lively discussions
 
when I select mutiple files, I cannot convert those files into TCL.
So, My Questino is If I select more than one files, how to catch each file and convert those sequencially
(But when I select one file, it converts.)

For example,

1. select a.htm, b.htm, c.htm, d.htm
2. convert a.htm first
3. convert b.htm second
4. convert c.htm Third
5. convert d.htm and so on
6. End of conversion

The problem is number 2 - 5.

But, when I conver a file, it works.
for example,
1. select a.htm
2. convert a.htm
3. end of conversion
 
I am still trying to take each file of the selected mutiple files from commondialog1.
Please help me, how to get each file??
Thank you in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top