Página 1 de 1
Run time error
Publicado: Mié May 18, 2011 10:22 am
por bobfburns
Hi All
Can anyone help please? I am evaluating the demo version of Xailer 2.3 with a view to purchasing it but have come across a problem to which I cannot see a cure. I made an error which produced no compiler error but did produce the following run time error when clicking on the menu in the opening form:
TMENUITEM:SETSTATE(628)
Error BASE/1066 Argument error: conditional
Arguments: ( [ 1] = Type: U Val: NIL)
Exe: F:DEVXailerLogbookLogbook.exe
Version: 1.0.0.0
User name: Bob
Computer name: BOB-PC
Date: 05/18/11
Time: 08:09:30
Available Memory: 2699008
Current Area: 1
I removed the offending line of code, saved and recompiled the entire application but the error persists. Last time I had this problem I had to delete the application and recreate it - luckily not much work at that point as just a few simple forms.
Regards
Bob
Run time error
Publicado: Mié May 18, 2011 10:28 am
por ignacio
bobfburns escribió el mié, 18 mayo 2011 10:22Hi All
Can anyone help please? I am evaluating the demo version of Xailer 2.3 with a view to purchasing it but have come across a problem to which I cannot see a cure. I made an error which produced no compiler error but did produce the following run time error when clicking on the menu in the opening form:
TMENUITEM:SETSTATE(628)
Error BASE/1066 Argument error: conditional
Arguments: ( [ 1] = Type: U Val: NIL)
Exe: F:DEVXailerLogbookLogbook.exe
Version: 1.0.0.0
User name: Bob
Computer name: BOB-PC
Date: 05/18/11
Time: 08:09:30
Available Memory: 2699008
Current Area: 1
I removed the offending line of code, saved and recompiled the entire application but the error persists. Last time I had this problem I had to delete the application and recreate it - luckily not much work at that point as just a few simple forms.
Regards
Bob
If you do not mind try to export the application with the menu option Project->Export and send it to us so we can check it. BTW, you may delete all the parts of the application except the offending code.
Regards,
Run time error
Publicado: Mié May 18, 2011 10:29 am
por ignacio
bobfburns escribió el mié, 18 mayo 2011 10:22Hi All
Can anyone help please? I am evaluating the demo version of Xailer 2.3 with a view to purchasing it but have come across a problem to which I cannot see a cure. I made an error which produced no compiler error but did produce the following run time error when clicking on the menu in the opening form:
TMENUITEM:SETSTATE(628)
Error BASE/1066 Argument error: conditional
Arguments: ( [ 1] = Type: U Val: NIL)
Exe: F:DEVXailerLogbookLogbook.exe
Version: 1.0.0.0
User name: Bob
Computer name: BOB-PC
Date: 05/18/11
Time: 08:09:30
Available Memory: 2699008
Current Area: 1
I removed the offending line of code, saved and recompiled the entire application but the error persists. Last time I had this problem I had to delete the application and recreate it - luckily not much work at that point as just a few simple forms.
Regards
Bob
If you do not mind try to export the application with the menu option Project->Export and send it to us so we can check it. BTW, you may delete all the parts of the application except the offending code.
Regards,
Run time error
Publicado: Mié May 18, 2011 10:41 am
por bobfburns
Thanks for your prompr reply. I have attached the project with the offending line of code commented out.
Regards
Bob
Attached files Logbook-1-0-0-0.zip (3.5 KB)Â
Run time error
Publicado: Mié May 18, 2011 11:55 am
por ignacio
bobfburns escribió el mié, 18 mayo 2011 10:41Thanks for your prompr reply. I have attached the project with the offending line of code commented out.
Regards
Bob
Bob,
The bug is on the menu item check state event. That event is used to change the menu state (enable|disable) depending on the value returned by the event that should return a logical value. For example, this code:
METHOD Menu2Item1_1CheckState( oSender ) CLASS TForm1
RETURN .f.
Will disable the menuitem.
In order to delete the event:
2) select the menu item on the form
1) select the object inspector (the menu item should be set)
3) select the 'Events' tab
4) select the OnCheckState Event
5) Press the delete button
Regards,
Run time error
Publicado: Mié May 18, 2011 12:57 pm
por bobfburns
Thank you very much - that has fixed the problem but I would never have known where to look. Great service!
Regards
Bob
Run time error
Publicado: Mié May 18, 2011 1:59 pm
por ignacio
bobfburns escribió el mié, 18 mayo 2011 12:57Thank you very much - that has fixed the problem but I would never have known where to look. Great service!
Regards
Bob
Hi,
Xailer reports exactly the offending line. Just take a look at the help file for that event and that's all!
Regards,