Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Compare Strings...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Compare Strings...

 Post Reply Post Reply
Author
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Topic: Compare Strings...
    Posted: 12 April 2003 at 7:44pm
I have two strings (one in a database accessed using 'rs.fields("JokeName")' and one accessed using 'jn'). I want to compare these strings to test if they are simalar (notice i said simalar, like if jokename is 1 2 3 and jn is 3 then i want it the result to be true). Can anyone help?
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 12 April 2003 at 9:28pm
well if the field just contain like 123 etc you can use the instring function of asp. but I guess your string may be more complex so, either the search in the database with LIKE or if you use sql you can use the sql server soundex function which you can use to get similar sounding words i.e. read and beat sound similar. Soundex will return how similar they are. But getting it from your fieldname Jokename the LIKE should be sufficient....
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 13 April 2003 at 9:22am
Could i use this as "If jn LIKE jokename then ..."?
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.