Rajesh Karunakaran
Programmer
Dear Team!
I have a form which is supposed to call from another form (a bill entry form) or directly from menu. The form is for maintaining a master data. When the form is run I have to do different actions based of if the form was called by another form or by the menu. I know if I pass a parameter to the form indicating the caller, I can manage it. But, I need to pass a value (the parameter) wherever I call this form. I thought of comparing PROGRAM(0) and PROGRAM(PROGRAM(-1)). But, when I call the form from a parent form, it seems it gives me only the last run form's name (or, do I miss something?)
So, is there a direct way to determine this so that I can make a more of generic manner.
Thank you in advance.
Rajesh
I have a form which is supposed to call from another form (a bill entry form) or directly from menu. The form is for maintaining a master data. When the form is run I have to do different actions based of if the form was called by another form or by the menu. I know if I pass a parameter to the form indicating the caller, I can manage it. But, I need to pass a value (the parameter) wherever I call this form. I thought of comparing PROGRAM(0) and PROGRAM(PROGRAM(-1)). But, when I call the form from a parent form, it seems it gives me only the last run form's name (or, do I miss something?)
So, is there a direct way to determine this so that I can make a more of generic manner.
Thank you in advance.
Rajesh