|
-
Feb 8th, 2008, 07:40 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] space path location
How to tell the users with message box that the path location having a space?
rlyr.file = Dir1.Path & "\" & File1.List(File1.ListIndex)
-
Feb 8th, 2008, 07:55 AM
#2
Re: space path location
What?
I don't understand the question.
-
Feb 8th, 2008, 08:06 AM
#3
Thread Starter
Frenzied Member
Re: space path location
I have path location like this
Code:
C:\Database\BOUNDARIES\TKSSBlock C
This path location having an empty space between text. How to pop up a message box to tell user that, "no empty space is allowed in the path location, please rename the folder."
-
Feb 8th, 2008, 08:09 AM
#4
Member
Re: space path location
Code:
If InStr(1, Dir1.Path, " ") > 0 Then
MsgBox "no empty space is allowed in the path location, please rename the folder.", vbExclamation, "Error"
End If
-
Feb 8th, 2008, 08:13 AM
#5
Re: space path location
Ah, gotcha.
Does your program allow them to make the folder in the first place or is this a folder they make themselves, and then in your program, select?
-
Feb 8th, 2008, 08:45 AM
#6
Thread Starter
Frenzied Member
Re: space path location
 Originally Posted by Hack
Ah, gotcha.
this a folder they make themselves, and then in your program, select?
Yes, the make the folder and I select the folder. I use this code to select the folder Dir1.Path & "\" & File1.List(File1.ListIndex)
-
Feb 8th, 2008, 09:06 AM
#7
Re: [RESOLVED] space path location
Then before you make the folder check for a space. If there is one, don't make it.
-
Feb 8th, 2008, 09:07 AM
#8
Thread Starter
Frenzied Member
Re: [RESOLVED] space path location
Thank you, I already solve this problem
-
Feb 8th, 2008, 09:10 AM
#9
Re: [RESOLVED] space path location
 Originally Posted by matrik02
Thank you, I already solve this problem
What did you do?
-
Feb 8th, 2008, 09:14 AM
#10
Thread Starter
Frenzied Member
Re: [RESOLVED] space path location
 Originally Posted by Hack
What did you do?
Used reinholdmesne code, Actually I am not create the folder, the folder was create manually, I just select the folder from VB.
Code:
If InStr(1, Dir1.Path, " ") > 0 Then
MsgBox "no empty space is allowed in the path location, please rename the folder.", vbExclamation, "Error"
End If
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
|