> I am using the function PrefSetAppPreferences() and i am wondering about
two parameters:
> 1) parameter 'id'
> - As i understand, each application can have more than one preferences.
Are there any restrictions > on how many different preferences i can use?
> Is it only restricted by the size of "UInt16 id" ?
AFAIK, yes. I use it to allow different modules to have their own
preferences.
> 2) What is the parameter 'version' used for?
> - Does anyone have an idea?
it is used to allow a new version of the application to access preferences
that are incompatible with the previous version.
> - What happens if the version of the application retrieving the
preferences with
> PrefGetAppPreferences() has a different version number?
nothing. that is the whole idea. suppose you upgrade an application from
version, with different preferences. the first time the new version is run,
it tries to retrieve the new version of the preferences. when this fails, it
can assume that it is running for the first time.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/