I don't know if this works or not, haven't tried it myself but... Why don't you try overloading the function FrmGotoForm() such that you have the default version that accepts a form ID and another that will accept a form ID and the form ID that sent it there
FrmGotoForm(NewFormID, FrmGetActiveForm()); If you try this, let me know. ~Tony >>> [EMAIL PROTECTED] 10/25/04 05:30AM >>> I have need of creating a global variable to track which form is calling my custom created calendar form so I can always return to the calling form. I have read that it is preferred to use Memory Chunks vs. Globals. Which one is the best way and what is a simple example of how to use both? Problem: Single custom calendar form that calculates and creates the right calendar for any date from the year 1 to 9999. I only have one form but many other forms it is called from and in some places multiple places on the same form so I need to track what form and what field to return the selected day value to. Help is desperately needed on this. I know how to do it using NSBasic but the code has gotten bloated so I have switched to C to redo the application for both performance and size. Regards, Michael W. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
