|
-
Jul 14th, 2003, 02:56 PM
#1
Thread Starter
Hyperactive Member
HTTP, HTTPS, UNC - textbox prefix
Hi,
I have a textbox that I want to found out if the data entered into it starts off with certain text i.e.
if the user typed in "http://myserver/sharedname" as the path for the file, i want to be able to tell if it's a web addres...
the way i'm trying to do it to cut down on code rather than parsing through the string is to...
Select Case txtNetPath.Text.ToString
Case strPrefix.StartsWith("http://") = true
MsgBox("http://")
Case strPrefix.StartsWith("https://") = true
MsgBox("https://")
End Select
this select case doesn't work, yet an if then does.... I rather use the select case since it is easier to look at and faster? thanks.
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
|