Howdy everyone

ok the first question I don't really know how to explain so I'll have to use an example:

ok say I was getting my program to search the hard drive for a file say mooose.ocx ok now say it came back with 50 matches and I wanted it to write this data to the registry
I write to the registry like so:
SetStringValue "HKEY_LOCAL_MACHINE\software\moose inc\what ever the programs name", "title of string", "then the string" so instead of make 50 if statements to cope with 50 matches is there someway to just make 1 if statement that will write how many ever files are found paths to the registry?

so it would look like this:
SetStringValue "HKEY_LOCAL_MACHINE\software\moose inc\search", "match1", "C:\programs files\mooose.ocx"
SetStringValue "HKEY_LOCAL_MACHINE\software\moose inc\search", "match2", "C:\programs files\mooose\mooose.ocx"
and so on just adding another number to the match and listing the path like above?

and also a slight variation of the question above so to read from the registry I would read from it like so: GetStringValue("HKEY_LOCAL_MACHINE\software\Mooose Inc\search", "match")
so what i want to know also is how would I get say all the values out of the registry into a list box so instead of having to type another 50 statements to get each file. so how would i do those things?

thanx



------------------
Mooose