I see a resource type called 'soft constant' in the constructor, but I
cannot find any documentation anywhere on what exactly it is.  I tried
searching the constructor PDF that came with the 5.0 SDK but was unable to
find anything.  I even tried the word 'soft' and was unable to find
anything.

Anybody out there know what it is?
It's a four byte resource of type 'tint'. You can call ResLoadConstant, passing in a resource ID, to get the value back (though the code is trivial).

Soft constants are typically used to store application "constants" that a localizer would want to adjust, based on the locale. One example is when a specific kind of functionality (say word stemming) only makes sense for some locales - in that situation you might store a boolean value in a soft constant, which the app would then check at run-time.

Anyone know why it is not documented?
The ResLoadConstant function, and the 'tint' resource type, are described on page 460 of the Palm OS Reference document (version 3003-003). But you're right that it doesn't use the term "soft constant" anywhere. Also, my copy of the Constructor documentation doesn't describe soft constants.

-- Ken
--
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.palmos.com/dev/support/forums/

Reply via email to