that only i meant in my qn itself.  anyhow thanks for ur efforts.
Guru

>From: Joe Programmer <[EMAIL PROTECTED]>
>Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>Subject: RE: Wild card search with database names!!
>Date: Wed, 5 Dec 2001 08:50:01 -0800 (PST)
>
>--- "Gururajan Raghavendran" wrote:
> >   I want to search for the names of databases
> > using wild card search.  ie. When i give 'db*',
> > i have to get the dbID of the corresponding
> > databases whose name has the first two letters
> > as 'db'. I didnt find any direct API for this.
>
>I believe that is because there is no single API
>function to do this.  You can't expect a tiny OS to do
>everything for you.
>
> >   I hope we can search each and every database
> > with the matching number of characters for our
> > search.
>
>You can search for all databases with
>DmGetNextDatabaseByTypeCreator().  The docs include
>sample code to search for databases.  Just use NULL
>for the type and creator to look for every db.
>DmGetNextDatabaseByTypeCreator() will return the card
>number and local ID of any database it finds.  Then
>you can use that info to get the database name with
>DmDatabaseInfo().  Then just check for a matching
>name.
>
>
>__________________________________________________
>Do You Yahoo!?
>Buy the perfect holiday gifts at Yahoo! Shopping.
>http://shopping.yahoo.com
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe, 
>please see http://www.palmos.com/dev/tech/support/forums/


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to