Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Search Members
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Nick Feakes
New Member

99 Posts

Posted - 27 April 2006 :  18:51:13  Show Profile
Hi
the search members using Last Name and entering a letter (manually) returns all members with that letter somewhere in their last name instead of last names begining with that letter. How do fix this?
Nick

AnonJr
Moderator

United States
5768 Posts

Posted - 28 April 2006 :  09:24:51  Show Profile  Visit AnonJr's Homepage
I can see where that might be misconstrued, but I'm not sure that that is something that is broken...

If you use the search box, you are indicating that you are looking for something that contains that text. If you wanted to find all names that start with a given letter, why not just click on the letter in list of letters right below the box?

Having said that, it might be possible to MOD it to automatically assume you are searching from the start of the name unless you add some special character. Doing that is probably going to require a rather large chunk of code - well, large if you want to keep it secure - and its going to have to do some thorough checking to make sure no one does any funny RegEx stuff.

I'm not sure how fruitful it would be to go that way. If you are interested in learning more about RegEx (VBScript's Regular Expressions object), there are a few articles/references for it. (O'Riley has an entire book on it.)

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/9f1c25ba-46ce-46af-9f19-ac1d2bcf05d8.asp

http://www.15seconds.com/issue/010301.htm
Go to Top of Page

Nick Feakes
New Member

99 Posts

Posted - 28 April 2006 :  13:36:31  Show Profile
Thank you for your reply. Unfortunately, if you click on the letters below the text box the search reverts to user name irrespective of which box is ticked, but it does at least search on the first letter. Is it possible to import part of that code into the search for last name I wonder?
Nick
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 28 April 2006 :  18:01:08  Show Profile  Visit AnonJr's Homepage
It might be possible. To be honest, I haven't really considered it. Usually I know part of the name I'm looking for so the current behavior is sufficient...
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07