> I am new to palm programming . In windows you can use Message Box to display any
>message . I want to know the similar utility to display any string from my program to
>the Palm screen . Like a trace utility to check the programme execution .
I normally use an Alert Form (DebugAlert) with a "^1" in it's message. I
call
FrmDoCustomAlert( DebugAlert, "my message", NULL, NULL )
to make the palm stopping with my message here. Remember that "my message"
must be stored in "global space" (not on the stack in a local Char array).
You can spice this up by using
#define Debug(x) FrmDoCustomAlert(x,NULL,NULL)
and use
#define Debug(x) /*nothing*/
to get rid of all messages at once after debugging this way.
But you should also consider using a debugger which is normally
far more helpful. You can set a breakpoint and watch local and global
variables from there in order to locate problems.
Regards,
Holger Klawitter
--
Holger Klawitter +49 (0)251 484 0637
[EMAIL PROTECTED] http://www.klawitter.de/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/