How can I get the lsit of Open DIALOGS.
I am using DIALOG's with NOWAIT clause. I want to stop my users from opening the same DIALOG twice. For this I need some function to check whether the DIALOG is already open or NOT
I already know the code to check for Open MDI CHILD windows, But this does not work for DIALOG's.
Can anybody give me a hint on how to check for Open DIALOG's
Code to check MDI CHILD Windows
- Code: Select all Expand view
------------------------------------------------------*
Function wndSetFocus(cTitle)
*------------------------------------------------------*
/* Here is a function to prevent opening more than one copy of a MDI child window.
It also brings the window to the top and set the focus to it. */
local i:=0,lSuccess:=.f.
cTitle:=upper(cTitle)
For i=1 to len(wndMain():oWndClient:aWnd)
if upper( wndMain():oWndClient:aWnd[i]:cCaption )=cTitle
wndMain():oWndClient:aWnd[i]:setFocus()
lSuccess:=.t.
endif
Next
Return lSuccess
Regards
Anser