For resource databases, the version number is used to break ties if two databases with the same type & creator exist on the device, where one is in ROM and the other is in RAM. In that case, the higher version number wins. If the version numbers match, then RAM wins over ROM. Note that when calling DmFindDatabase(), RAM always wins over ROM, regardless of the version number. -- Ken At 12:00am -0800 00-04-07, Palm Developer Forum digest wrote: >Subject: Re: Database names; version numbers >From: "Brandon Wallace" <[EMAIL PROTECTED]> >Date: Thu, 6 Apr 2000 11:44:01 -0500 >X-Message-Number: 43 > >Yeah, my understanding for the purpose of the db version is so your >program can detect an old database and possibly upgrade it to a >new version or something like that. >I don't think it is meant to be used so you can maintain multiple >versions on the device at the same time. > >Brandon > > > "William Brodie" <[EMAIL PROTECTED]> wrote in message > > news:7274@palm-dev-forum... > > > Can anyone shed light on the standard model for creating and using > > databases > > > with different version numbers? > > > > The only uniqueness criterion for databases in Palm OS is the name. You >can > > only have a single database with a given name, regardless of the type, > > creator, and version. I don't know of any convention for naming databases >to > > include version numbers. This would allow multiple versions to coexist on >a > > device. Why would you want to do this? Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palm.com/devzone/mailinglists.html
