Is this the correct way to read the text displayed within a button?
Thanks.
ctl = GetObjectPtr(DateTimeTimeButton); if (ctl) { str2 = (char *) CtlGetLabel(ctl);
Yes, that's correct, except that you should make str2 a const char * instead of casting the pointer to a non-const form.
-- Ben Combee, Senior Software Engineer, palmOne, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Forum Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
