You could just define the name as a constant in a header file, then you only
have to make one change to the code. Barring that, you could step through
all of the databases by index using DmGetDatabase, which will give you a
local ID. Use the local ID to call DmDatabaseInfo, which will return a
pointer to the name, the type, and the creator ID. Confirm that it is type
'appl' and your creator ID, then use the pointer to that name. This should
work, but I haven't tried it lately.
Regards,
Steve
-----Original Message-----
From: Jason Partyka [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 24, 2000 5:00 PM
To: Palm Developer Forum
Subject: Variables and Constructor
Hi,
I'm developing a Palm app whose name may change in the future. As part of
the design, the name of the app is referenced many places in the app. Is
there any way to give Constructor a variable in place of hard coding the
app's name?
Thanks!
-Jason
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/