1. Database key wildcard search

Is it possible to search a record with a partial key (key with 
wildcards).

now we have:
rec = db_find_key("find_this_key")

a function like this would be very useful:
rec = db_find_key_wildc("find_th?s_???")

It should be possible to build such a function, but key_pointer 
structure is a bit too complicated for me, can someone offer some help?

(I think an integer 'starting_rec' is needed to do multiple searches:
rec = db_find_key_wildc("find_th?s_???", starting_rec)

new topic     » topic index » view message » categorize

2. Re: Database key wildcard search

On 18 Dec 2001, at 16:13, void wrote:

> 
> Is it possible to search a record with a partial key (key with 
> wildcards).
> 
> now we have:
> rec = db_find_key("find_this_key")
> 
> a function like this would be very useful:
> rec = db_find_key_wildc("find_th?s_???")
> 
> It should be possible to build such a function, but key_pointer 
> structure is a bit too complicated for me, can someone offer some help?
> 
> (I think an integer 'starting_rec' is needed to do multiple searches:
> rec = db_find_key_wildc("find_th?s_???", starting_rec)

Better add a how_many_to_return also, so it can stop searching, and not 
return 1000's of matches! And a way to find "find*_th*".

Kat

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu