codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  research the search - hash  baxy77bax at 07:27 on Tuesday, August 21, 2007
 

Hi,

I think i saw a solution of this problem on this forum but i can't find that post, so i'll ask again.
my problem is that i have a table that i converted to hash, the table looks something like this:

x => y
23 32
12 45
12 35
12 67
45 34
34 90
34 55
35 53
35 44
44 41
...
now when i try to search for #12 it returns only the #67 but not 35 and 45.
why is that, and how can i solve this problem,that, at the end of my search it returns all the matching results.

also i'm having problems with creating a loop that would find for example #12, return the result(s) for #12 and start the search again with that result(s) (example: 12=>35, 35=>44, 44=>41). and that it writes down the results of each search.

thank you ,

robert

  Re: research the search - hash  mimir at 00:11 on Saturday, August 25, 2007
 

you are writing into the same key many times.
every time you write to a given key after it has been created you overwrite whatever was there before.



  Re: research the search - hash  baxy77bax at 13:40 on Monday, August 27, 2007
 

ok but how to loop the search so that it searches the file once again with the search results








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: research the search - hash
•  I want to control Digital Camera or Web Cam through VB
•  Re: Does anyone know to create or implement a diary into Java??
•  Re: Perl Developers Guide
•  Re: Replacing patterns a^b with pow(a,b)
•  Re: java input/output
•  Re: Beanshell web browser
•  Re: dynamic crystal report generation
•  Re: java app auto web update..


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007