--- "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/
