|
-
Jan 2nd, 2000, 06:30 PM
#1
Thread Starter
Addicted Member
-
Jan 2nd, 2000, 07:54 PM
#2
Member
Hi !
I'm not sure if I understand this.
Try this:
Sub Text1_Change()
Select Case UCase$(Text1.Text)
case "I NEED HELP"
Text2.Text = "You'll get your help..."
case "I NEED MORE"
Text2.Text = "You'll get more..."
End Select
End Sub
------------------
EMAIL: [email protected]
PAGE: <A HREF="http://members.xoom.com/sharetools
" TARGET=_blank>http://members.xoom.com/sharetools
</A>
-
Jan 2nd, 2000, 08:32 PM
#3
If you just want to check specific words, use the InStr function.
InStr Function
Returns a Variant (Long) specifying the position of the first occurrence of one string within another.
Syntax
InStr([start, ]string1, string2[, compare])
The InStr function syntax has thesearguments:
start: Optional.Numeric expression that sets the starting position for each search. If omitted, search begins at the first character position. If start contains Null, an error occurs. The start argument is required if compare is specified.
string1: Required.String expression being searched.
string2: Required. String expression sought.
compare: Optional. Specifies the type ofstring comparison. If compare is Null, an error occurs. If compare is omitted, the Option Compare setting determines the type of comparison.
------------------
Vincent van den Braken
EMail: [email protected]
ICQ: 15440110
Homepage: http://www.azzmodan.demon.nl
[This message has been edited by Azzmodan (edited 01-03-2000).]
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
|