Yes...I did not want to see the files with spaces..
So...I think vladk's idea was good...
But it was difficult to change my current code using your idea...
So, Instead of not showing the files with spaces, I use that way..
Thank you for all your help
This works for me..
Private Sub File1_Click()
If (InStr(1, File1.FileName, " ", vbTextCompare) <> 0) Then
File1.Selected(File1.ListIndex) = False
End If
End sub
This is what I wrote..
If InStr(1, "*.html", " ", vbBinaryCompare) = 0 Then
File1.Pattern = "*.tcl;*.htm;*.html;*.jpeg;*.gif;*.swf;*.txt;*.pdf;*.css;*.xml;*.png;*.tar;*.tgz"
End If
well I tried this way..but it did not work..so..
File1.Pattern = "*.tcl;*.htm;*.html;*.jpeg;*.gif;*.swf;*.txt;*.pdf;*.css;*.xml;*.png;*.tar;*.tgz"
I have more than one file. how to apply your idea on it?
Private Sub Form_Load()
If Me.csvUpload Then
File1.Pattern = "*.csv"
Me.Caption = "CSV File Upload"
Else
File1.Pattern = "*.tcl;*.htm;*.html;*.jpeg;*.gif;*.swf;*.txt;*.pdf;*.css;*.xml;*.png;*.tar;*.tgz"
End If
End Sub
In this code, it takes only those files as...
Well, I tried it..but I could not get it.
I am not sure how to take each character as a whole string.
When I check textbox, it still gets one by one.
If I take it as a whole string, I can use MID function to get exact string.
Would you please tell me how to get a whole string, not each...
Hi,
I am searching specific string.
String looks like
------
date -s "03/01/2005 12:13:03"Tue Mar 1 12:13:03 PST 2005bash#
------
To get string,
FTPUpload.Text1.SelText = Chr$(CH)
To get string, it takes one by one on FTPUpload.Text1.Text.
For example,
d
a
t
e
-s
.......
b
a
s
h
#
So...
Hi,
I am trying to write Date and Time Validation
This is Date and Time format-based local computer.
Text2.Text = Format(Now, "mm/dd/yyyy hh:mm:ss")
if I want to type date and time manually on Text2.Text.
How to validate Date and Time?
Thank you in advance.
hi,
I have a question about commonDialog
when I select one file, CommonDialog1.FileName shows
..........\Ver2.0\one.html
But, when I select two files, CommonDialog1.FileName shows
..........\Ver2.0rtwo.htmlrone.html
Would you please tell me why it looks different??
Thank you in advance...
hi,
I am trying to make conversion program.
This is what I have so far.
1. I can convert one file
2. I can select more than one file.
3. but, when I convert more than one file, error occurs.
I do not know how to convert mutiple files.
Would you please help me...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.