is it possible stop running a code until a window is closed ? (WAIT)
ex:
CODE...
DEFINE WINDOW oWnd TITLE "Test"
...
...
ACTIVATE WINDOW oWnd MAXIMIZED (STOP HERE...)
CONTINUE CODE...
Stop code on window
-
- Posts: 1102
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
Re: Stop code on window
Do you mean something like a dialog?
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Re: Stop code on window
Yes... I want code stoped like a dialog
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Stop code on window
If the window is a main window, the "CONTINUE CODE" is not executed till the window is closed.
Are you asking about an MDI Child window?
Are you asking about an MDI Child window?
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Stop code on window
1) Main Window
The "CONTINUE CODE" is executed only after the main window is closed.
2) MDI Child Window:
Do not put the CONTINUE CODE after ACTIVATE WINDOW, but put this code in the codeblock
The "CONTINUE CODE" is executed only after the main window is closed.
2) MDI Child Window:
Do not put the CONTINUE CODE after ACTIVATE WINDOW, but put this code in the codeblock
Code: Select all
oWnd:bPostEnd := { || <CONTINUE CODE> }
3) Normal window, but not a main window or mdi child window.
[code]
local lExit := .f.
// other code
ACTIVATE WINDOW oWnd VALID ( lExit := .t. )
StopUntil( { || lExit } )
CONTINUE CODE
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India