| Subject |
Re: Form called in .prg is not getting executed |
| From |
Ken Mayer <dbase@nospam.goldenstag.net> |
| Date |
Sun, 31 Oct 2021 21:51:54 -0700 |
| Newsgroups |
dbase.getting-started |
On 10/31/2021 9:39 PM, Milind Nighojkar wrote:
> Facing Issue in executing form when called in a program.
>
> Scenerio :
> ......above code lines
> do t_form.wfm
> .....below code lines
>
> Issue : expecting to exute (......above code lines) and then executing t_form as inputs in the form are used in .....below code lines. It skips and tries to execute (.....below code lines..)
>
> Anything I am missing?
>
> however if I call t_form say in t_form.prg which has code lines
> do t_form.wfm
>
> it executes
If the form is an "MDI" form, then any code that follows the command:
do t_form.wfm
Is also executed, which means that for example if you release the form,
the form may appear, but it will be released. Execution of the program
doesn't stop.
If you instead use:
do t_form.wfm with true
The form will be treated as a modal form, the program will stop until
the form is closed, then any code after that will be executed.
Ken
--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm
|
|