Subject |
Re: closing form |
From |
Ken Mayer <dbase@nospam.goldenstag.net> |
Date |
Mon, 22 Nov 2021 08:43:04 -0800 |
Newsgroups |
dbase.getting-started |
On 11/22/2021 6:18 AM, Milind Nighojkar wrote:
> Scenerio. form A is opened
> Wanted to close this form
> Iuused a syntax : CLOSE FORMS A
> Get error : No such form A
>
> Any suggestions
How are you opening form a?
do forma.wfm
or
set procedure to forma.wfm
fFormA = new formaForm()
fFormA.open()
? It makes a huge difference.
If you're doing it the first way, that gets tricky, and as Akshat points
out, you should look at findInstance().
However, I almost never use the first way, because the second gives me
the ability to directly control the forms. If I have a situation where
my code is doing a bunch of stuff, and I need to close form A from it,
using the above method, I can do:
fFormA.close()
And that will do the trick.
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
|
|