ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 28th, 2000, 12:36 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
How do you search a word within a string?

<i><b>Originally posted by : Vennie (petitecorn@rcn.com)</b></i><br />Hi:<br /><br />I was wondering if anybody can help me with this. I need to search for a word within a string(such as returning true if the program finds the word "you" in the string "how do you do this?") Any help would be appreciated. Thank you.<br /><br />Ven.<br />

Reply With Quote
  #2  
Old March 1st, 2000, 11:19 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Karl (zeepoh@wt.net)</b></i><br /><br />Ven,<br />Use the instring function. It searches for a text string within another. The syntax for it is:<br /><br />instr(<start>,string 1, string 2, <compare>)<br /><br />this function returns the start position where it string 2 within string 1. if it returns a value of 0 then string 2 doesn't exist within string 1. the first parameter denotes the position where instr starts searching and the last parameter denotes which type of comparison it does (0 for case sensitive and 1 for case insensitive)<br /><br />Hope this helps!<br /><br />------------<br />Vennie at 2/28/2000 10:36:20 AM<br /><br />Hi:<br /><br />I was wondering if anybody can help me with this. I need to search for a word within a string(such as returning true if the program finds the word "you" in the string "how do you do this?") Any help would be appreciated. Thank you.<br /><br />Ven.<br />

Reply With Quote
  #3  
Old March 3rd, 2000, 04:41 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Venie Wijaya (petitecorn@rcn.com)</b></i><br />Whew, thanks. I forgot that about that command. I tried looking it up in my book, but couldn't find it. =)<br /><br />Ven.<br /><br /><br />------------<br />Karl at 3/1/2000 9:19:30 AM<br /><br /><br />Ven,<br />Use the instring function. It searches for a text string within another. The syntax for it is:<br /><br />instr(<start>,string 1, string 2, <compare>)<br /><br />this function returns the start position where it string 2 within string 1. if it returns a value of 0 then string 2 doesn't exist within string 1. the first parameter denotes the position where instr starts searching and the last parameter denotes which type of comparison it does (0 for case sensitive and 1 for case insensitive)<br /><br />Hope this helps!<br /><br />------------<br />Vennie at 2/28/2000 10:36:20 AM<br /><br />Hi:<br /><br />I was wondering if anybody can help me with this. I need to search for a word within a string(such as returning true if the program finds the word "you" in the string "how do you do this?") Any help would be appreciated. Thank you.<br /><br />Ven.<br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > How do you search a word within a string?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT