When I am closing forms with a OnCheckState to fast, I get the following error:
Subsystem Call: BASE
System Code: 1132
Default Status: .F.
Description: Bound error
Operation: array access
Arguments: [ 1] = Type: A Val: [ 2] = Type: N Val: 3
Involved File:
Dos Error Code: 0
Trace Through:
FRMNOTESSEARCH:REQUESTSTATE (314)
TFOLDER:REQUESTSTATE (316)
TFORMMAIN:REQUESTSTATE (316)
TCONTROL:WMSETFOCUS (35)
TSTDCONTROL:WMSETFOCUS (139)
etc. etc. etc.
How can I capture this?
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.
REQUESTSTATE - error
-
- Mensajes: 126
- Registrado: Lun Mar 29, 2010 10:24 am
- ignacio
- Site Admin
- Mensajes: 9447
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
REQUESTSTATE - error
Maarten,
As you can see you have a recursivity problem. Maybe some of the code on
those events provokes a new event OnRequestState.
I suggest the following:
1) Do not change the focus on any OnRequestState code
2) Use a static var on those Events to control that you are already there.
3) Simplify your code avoiding the use of this event.
Regards,
--
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
http://www.xailer.com/forum
http://www.xailer.com/dokuwiki
"Maarten Roos" <m[dot]roos[at]ecem[dot]com> escribió en el mensaje de
noticias:4cadc427$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> When I am closing forms with a OnCheckState to fast, I get
> the following error:
>
> Subsystem Call: BASE
> System Code: 1132
> Default Status: .F.
> Description: Bound error
> Operation: array access
> Arguments: [ 1] = Type: A Val: [ 2] = Type: N Val:
> 3
> Involved File: Dos Error Code: 0
>
>
> Trace Through:
> FRMNOTESSEARCH:REQUESTSTATE (314)
> TFOLDER:REQUESTSTATE (316)
> TFORMMAIN:REQUESTSTATE (316)
> TCONTROL:WMSETFOCUS (35)
> TSTDCONTROL:WMSETFOCUS (139)
>
> etc. etc. etc.
>
>
> How can I capture this?
>
As you can see you have a recursivity problem. Maybe some of the code on
those events provokes a new event OnRequestState.
I suggest the following:
1) Do not change the focus on any OnRequestState code
2) Use a static var on those Events to control that you are already there.
3) Simplify your code avoiding the use of this event.
Regards,
--
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
http://www.xailer.com/forum
http://www.xailer.com/dokuwiki
"Maarten Roos" <m[dot]roos[at]ecem[dot]com> escribió en el mensaje de
noticias:4cadc427$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> When I am closing forms with a OnCheckState to fast, I get
> the following error:
>
> Subsystem Call: BASE
> System Code: 1132
> Default Status: .F.
> Description: Bound error
> Operation: array access
> Arguments: [ 1] = Type: A Val: [ 2] = Type: N Val:
> 3
> Involved File: Dos Error Code: 0
>
>
> Trace Through:
> FRMNOTESSEARCH:REQUESTSTATE (314)
> TFOLDER:REQUESTSTATE (316)
> TFORMMAIN:REQUESTSTATE (316)
> TCONTROL:WMSETFOCUS (35)
> TSTDCONTROL:WMSETFOCUS (139)
>
> etc. etc. etc.
>
>
> How can I capture this?
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
-
- Mensajes: 126
- Registrado: Lun Mar 29, 2010 10:24 am
REQUESTSTATE - error
Ignacio,
what I try to do is executing the "Application:lBusy := .t." command to let the user know that the application is busy... I need this especially for AIS.
So before I open for example a tab or form I set "Application:lBusy := .t." and on the forms "OnActivate" I set "Application:lBusy := .f."
For tabs I cannot use "OnActivate" so I tried it with "OnCheckState" This works fine if you close the tabs slowly, but loops when you hold down the close tab function key.
Maybe there is another/better was to show the user that the application is busy?
what I try to do is executing the "Application:lBusy := .t." command to let the user know that the application is busy... I need this especially for AIS.
So before I open for example a tab or form I set "Application:lBusy := .t." and on the forms "OnActivate" I set "Application:lBusy := .f."
For tabs I cannot use "OnActivate" so I tried it with "OnCheckState" This works fine if you close the tabs slowly, but loops when you hold down the close tab function key.
Maybe there is another/better was to show the user that the application is busy?
- ignacio
- Site Admin
- Mensajes: 9447
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
REQUESTSTATE - error
Maarten,
I suggest you put the code on TDataset:OnPostOpen()
Regards,
--
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
http://www.xailer.com/forum
http://www.xailer.com/dokuwiki
"Maarten Roos" <m[dot]roos[at]ecem[dot]com> escribió en el mensaje de
noticias:4cadd34a$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Ignacio,
>
> what I try to do is executing the "Application:lBusy := .t."
> command to let the user know that the application is busy...
> I need this especially for AIS.
>
> So before I open for example a tab or form I set
> "Application:lBusy := .t." and on the forms "OnActivate" I
> set "Application:lBusy := .f."
>
> For tabs I cannot use "OnActivate" so I tried it with
> "OnCheckState" This works fine if you close the tabs
> slowly, but loops when you hold down the close tab function
> key.
>
> Maybe there is another/better was to show the user that the
> application is busy?
>
>
I suggest you put the code on TDataset:OnPostOpen()
Regards,
--
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
http://www.xailer.com/forum
http://www.xailer.com/dokuwiki
"Maarten Roos" <m[dot]roos[at]ecem[dot]com> escribió en el mensaje de
noticias:4cadd34a$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Ignacio,
>
> what I try to do is executing the "Application:lBusy := .t."
> command to let the user know that the application is busy...
> I need this especially for AIS.
>
> So before I open for example a tab or form I set
> "Application:lBusy := .t." and on the forms "OnActivate" I
> set "Application:lBusy := .f."
>
> For tabs I cannot use "OnActivate" so I tried it with
> "OnCheckState" This works fine if you close the tabs
> slowly, but loops when you hold down the close tab function
> key.
>
> Maybe there is another/better was to show the user that the
> application is busy?
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
-
- Mensajes: 126
- Registrado: Lun Mar 29, 2010 10:24 am
REQUESTSTATE - error
I will try that...
Thx
Thx
-
- Mensajes: 126
- Registrado: Lun Mar 29, 2010 10:24 am
REQUESTSTATE - error
Neh, no succes... it's triggered to soon.