Página 1 de 1

REQUESTSTATE - error

Publicado: Jue Oct 07, 2010 2:59 pm
por Maarten Roos
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?

REQUESTSTATE - error

Publicado: Jue Oct 07, 2010 3:29 pm
por ignacio
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?
>

REQUESTSTATE - error

Publicado: Jue Oct 07, 2010 4:03 pm
por Maarten Roos
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?

REQUESTSTATE - error

Publicado: Jue Oct 07, 2010 4:09 pm
por ignacio
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?
>
>

REQUESTSTATE - error

Publicado: Jue Oct 07, 2010 4:23 pm
por Maarten Roos
I will try that...
Thx

REQUESTSTATE - error

Publicado: Vie Oct 08, 2010 1:05 pm
por Maarten Roos
Neh, no succes... it's triggered to soon.