Hi,
I'm developing an MDI application.
I have a function that makes the connection to a folder containing the
tables I need to manage, each table opened into a MDIChild form.
There can be multiple folders used at the same time.
I have also a function that disconnect the selected folder.
In this function I must close all the child windows that use tables from
the folder I'm disconnecting from. If at least one child form is not closed
the disconnection process has to be aborted. To do this I use the following
code:
FOR EACH oForm IN ::oMDIClient:aForms
oForm:Close()
// Close checking ????
// IF !( IsClosed )
// Stop disconnection process
// ENDIF
NEXT
The question is: How can I be sure that the form has been closed ?
-----------------------
I think I've found a little bug in the sintax highlighting for .RC files
Try use a definition like this
MSG_ASKEXITAPP "Confermi l'uscita dall'applicazione ?"
^ ^
+-----------+
this substring is not shown in red
The same string is displayed correctly in a .PRG file.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
MDI question
-
- Mensajes: 281
- Registrado: Vie Ago 04, 2006 4:58 pm
MDI question
Giuseppe,
> The question is: How can I be sure that the form has been closed ?
This should do it:
IF oForm:Close()
...
ENDIF
> I think I've found a little bug in the sintax highlighting for .RC files
> Try use a definition like this
I just fixed it. Many thanks.
Saludos,
José Lalín
> The question is: How can I be sure that the form has been closed ?
This should do it:
IF oForm:Close()
...
ENDIF
> I think I've found a little bug in the sintax highlighting for .RC files
> Try use a definition like this
I just fixed it. Many thanks.
Saludos,
José Lalín
MDI question
Giuseppe,
> The question is: How can I be sure that the form has been closed ?
This should do it:
IF oForm:Close()
...
ENDIF
> I think I've found a little bug in the sintax highlighting for .RC files
> Try use a definition like this
I just fixed it. Many thanks.
Saludos,
José Lalín
> The question is: How can I be sure that the form has been closed ?
This should do it:
IF oForm:Close()
...
ENDIF
> I think I've found a little bug in the sintax highlighting for .RC files
> Try use a definition like this
I just fixed it. Many thanks.
Saludos,
José Lalín
-
- Mensajes: 281
- Registrado: Vie Ago 04, 2006 4:58 pm
MDI question
Il Sat, 19 Aug 2006 14:51:21 +0200, José Lalín ha scritto:
Jose,
>> The question is: How can I be sure that the form has been closed ?
>
> This should do it:
>
> IF oForm:Close()
> ...
> ENDIF
>
Thanks for your answer.
I asked because reading the Xailer Help file for the method Close() of
class TForm() the return value is indicated as NIL.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Jose,
>> The question is: How can I be sure that the form has been closed ?
>
> This should do it:
>
> IF oForm:Close()
> ...
> ENDIF
>
Thanks for your answer.
I asked because reading the Xailer Help file for the method Close() of
class TForm() the return value is indicated as NIL.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
-
- Mensajes: 281
- Registrado: Vie Ago 04, 2006 4:58 pm
MDI question
Il Sat, 19 Aug 2006 14:51:21 +0200, José Lalín ha scritto:
Jose,
>> The question is: How can I be sure that the form has been closed ?
>
> This should do it:
>
> IF oForm:Close()
> ...
> ENDIF
>
Thanks for your answer.
I asked because reading the Xailer Help file for the method Close() of
class TForm() the return value is indicated as NIL.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Jose,
>> The question is: How can I be sure that the form has been closed ?
>
> This should do it:
>
> IF oForm:Close()
> ...
> ENDIF
>
Thanks for your answer.
I asked because reading the Xailer Help file for the method Close() of
class TForm() the return value is indicated as NIL.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
MDI question
Guiseppe,
Fixed. Thanks.
Regards,
"Giuseppe Bogetti" <orangeREMOVEMEsocks@bgsoft.it> escribió en el mensaje
news:1y0m9cfjhza7o.1veji3lplmnl2$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
> Il Sat, 19 Aug 2006 14:51:21 +0200, José Lalín ha scritto:
>
> Jose,
>>> The question is: How can I be sure that the form has been closed ?
>>
>> This should do it:
>>
>> IF oForm:Close()
>> ...
>> ENDIF
>>
> Thanks for your answer.
>
> I asked because reading the Xailer Help file for the method Close() of
> class TForm() the return value is indicated as NIL.
>
> --
> Best regards,
>
> Giuseppe Bogetti
> B.G. Soft
> Cuneo - Italy
Fixed. Thanks.
Regards,
"Giuseppe Bogetti" <orangeREMOVEMEsocks@bgsoft.it> escribió en el mensaje
news:1y0m9cfjhza7o.1veji3lplmnl2$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
> Il Sat, 19 Aug 2006 14:51:21 +0200, José Lalín ha scritto:
>
> Jose,
>>> The question is: How can I be sure that the form has been closed ?
>>
>> This should do it:
>>
>> IF oForm:Close()
>> ...
>> ENDIF
>>
> Thanks for your answer.
>
> I asked because reading the Xailer Help file for the method Close() of
> class TForm() the return value is indicated as NIL.
>
> --
> Best regards,
>
> Giuseppe Bogetti
> B.G. Soft
> Cuneo - Italy
MDI question
Guiseppe,
Fixed. Thanks.
Regards,
"Giuseppe Bogetti" <orangeREMOVEMEsocks@bgsoft.it> escribió en el mensaje
news:1y0m9cfjhza7o.1veji3lplmnl2$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
> Il Sat, 19 Aug 2006 14:51:21 +0200, José Lalín ha scritto:
>
> Jose,
>>> The question is: How can I be sure that the form has been closed ?
>>
>> This should do it:
>>
>> IF oForm:Close()
>> ...
>> ENDIF
>>
> Thanks for your answer.
>
> I asked because reading the Xailer Help file for the method Close() of
> class TForm() the return value is indicated as NIL.
>
> --
> Best regards,
>
> Giuseppe Bogetti
> B.G. Soft
> Cuneo - Italy
Fixed. Thanks.
Regards,
"Giuseppe Bogetti" <orangeREMOVEMEsocks@bgsoft.it> escribió en el mensaje
news:1y0m9cfjhza7o.1veji3lplmnl2$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
> Il Sat, 19 Aug 2006 14:51:21 +0200, José Lalín ha scritto:
>
> Jose,
>>> The question is: How can I be sure that the form has been closed ?
>>
>> This should do it:
>>
>> IF oForm:Close()
>> ...
>> ENDIF
>>
> Thanks for your answer.
>
> I asked because reading the Xailer Help file for the method Close() of
> class TForm() the return value is indicated as NIL.
>
> --
> Best regards,
>
> Giuseppe Bogetti
> B.G. Soft
> Cuneo - Italy