|
-
Dec 5th, 2000, 10:46 PM
#1
Thread Starter
Member
I would like to make an If statement that looks for a certain letter or word in a label even if there are several words or letters in that label. Such as
If txtName = (a word or letter in a label) Then
Whatever happens(doesnt matter)
End If
How would I do this?
If you need clarification just reply.
Thanks a bundle,
Marc
cram
[email protected]
_ _ _ _ _ _ _ _ _ _ _ _ _ _
Things to Ponder

|Man who stands on toilet,
Is high On pot|
|Baseball Wrong,
Man with four balls cannot walk|
-
Dec 5th, 2000, 10:52 PM
#2
In a label?
Do you mean a TextBox? or really a label?
Try the Split() command
... ...
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Dec 5th, 2000, 10:59 PM
#3
Thread Starter
Member
I want to see if what a user typed in a text box is located in a label.
What is the split command?
Thanks,
Marc
cram
[email protected]
_ _ _ _ _ _ _ _ _ _ _ _ _ _
Things to Ponder

|Man who stands on toilet,
Is high On pot|
|Baseball Wrong,
Man with four balls cannot walk|
-
Dec 6th, 2000, 12:03 AM
#4
PowerPoster
The Split function can take a string and return an array:
Code:
Private Sub Form_Load
Dim TestString as string
Dim a() as string
dim i as integer
TestString = "This is a Test"
a = Split(TestString)
For i = lbound(a) to Ubound(a)
MsgBox a(i)
Next
End
End Sub
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
|