From: "Jeff Davey" <[EMAIL PROTECTED]>
Subject: How do I get the name from a database

> I'm using multiple calls to DmGetNextDatabaseByTypeCreator() to find all
> the databases on a device that match a specific type and creator type.
This
> returns LocalIDs for the databases. How can I retrieve the database name
> from these LocalIDs?

Err error;
DmSearchStateType dmSrchState;
LocalID localID, appInfoID, sortInfoID;
Char dbName[32];
UInt16 cardNo, attributes, version;
UInt32 crDate, modDate, backupDate, modNum, type, creator;

error = DmGetNextDatabaseByTypeCreator( true, &dmSrchState, 0, 0, true,
&cardNo, &localID );
if ( !error && localID )
{
  // get DB name
  error = DmDatabaseInfo( cardNo, localID, dbName, &attributes, &version,
    &crDate, &modDate, &backupDate, &modNum, &appInfoID, &sortInfoID,
    &type, &creator );
}



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