Help. Urgent 
Author Message
 Help. Urgent

I want to know how can I detect if a certain word is on the text Box:
For example.
I have a text1 / a text2 .
if text1 has the word "help" then text2.text="There is the word Help on
text1" else text2.text="no Word"
Thanks


Sun, 18 Feb 2001 03:00:00 GMT  
 Help. Urgent
Microchip wrote

Quote:
> I want to know how can I detect if a certain word is on the text Box:
> For example.
> I have a text1 / a text2 .
> if text1 has the word "help" then text2.text="There is the word Help on
> text1" else text2.text="no Word"
> Thanks

  you can make it by:
text2.text=iif(instr(1,text1.text,"help",1)>0,"There is the word Help on
text1" ,"no Word")
For further details, you should read the help script of keyword "InStr".


Sun, 18 Feb 2001 03:00:00 GMT  
 Help. Urgent
Use the inStr Function .
Quote:

>I want to know how can I detect if a certain word is on the text Box:
>For example.
>I have a text1 / a text2 .
>if text1 has the word "help" then text2.text="There is the word Help on
>text1" else text2.text="no Word"
>Thanks



Sun, 18 Feb 2001 03:00:00 GMT  
 Help. Urgent
how about..

if instr(lcase(text1.text),"hello")<>0 then
    'we found the word.
    text2.text = "The word help was found in text1"
else
    'we did NOT find the word.
    text2.text = "The word help was NOT found!"
end if

Hope this helps you, or at least points you in some direction

    Regards
        Gaea
        Tips, Snips, AddIn and some more
        http://www.inficad.com/~gaea

Quote:

>I want to know how can I detect if a certain word is on the text Box:
>For example.
>I have a text1 / a text2 .
>if text1 has the word "help" then text2.text="There is the word Help on
>text1" else text2.text="no Word"
>Thanks



Mon, 19 Feb 2001 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. FTP Problem PLEASE HELP!!! URGENT

2. I NEED HELP !!!! URGENT PLEASE

3. Please help ...... urgent .strange error

4. Please Help.. Urgent

5. Help! URGENT

6. Help!! Urgent:: VB5

7. Please help!! Urgent

8. Help!!!!! (URGENT)

9. !HELP! Urgent Import Excel values to a ListBox

10. HElp !! urgent

11. Help. Urgent

12. Form in Form Help! Urgent

 

 
Powered by phpBB® Forum Software