|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 1022 |
ABOUTBOX again |
le 19/12/2004 @ 14:26 par Douglas
|
Merry Christmas everyone,
Thanks Laurent for the update of iziBasic and speedy correction of the ABOUTBOX bug (and thanks for the Christmas gift too).
I have, however, discovered another problem with the ABOUTBOX beginning with V. 3.1.
I thought the problem was my coding until I discovered that it worked right in programs compiled with v3.0. With programs compiled with v. 3.1 and 3.2, if the ABOUTBOX is brought up during a WAITEVENT when you click on "Ok" to exit the ABOUTBOX you are taken out of the program completely.
I have tried trapping it but that caused the program to lock up. Perhaps you can instruct me on how to trap it.
Thanks, Douglas |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1 -------- le 19/12/2004 @ 22:19 par aldweb
visiteur |
Hello Douglas,
Don't thank me too much when, by solving a bug, I bring another one to you!
OK, I will look after this strange thing. Maybe try using DOEVENTS for the time being...
Cheers
@+ aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2 -------- le 20/12/2004 @ 22:15 par aldweb
visiteur |
Hello Douglas,
To figure out where the trouble was, I wrote and executed this quick program:
' Test.ibas {CREATORID "TEST"} {VERSION "1.0"}
CONST A$="Hello world" ABOUTBOX A$ BEGIN REPEAT E=WAITEVENT PRINT E USING 0 UNTIL E=-1 END
What I discovered is that WAITEVENT returns with a 0 no event value put in E when the user pops up the ABOUTBOX. This was not expected (WAITEVENT is supposed to return no 0 value event). I found no other trouble. So, I guess that your program exists because of your own coding...
I fixed this non blocking bug by having WAITEVENT (and DOEVENTS) returns with a 1002 event value, for information back to the program telling that the ABOUTBOX was displayed to the end user.
As this is not a blocking bug, I will not release a public version for it. I will wait to have a few other fixes to release one... and maybe, by that time, will it be version 4 with lots of improvements
Cheers
@+ aldweb |
|
|
sujet actif
sujet clos
Important!
Nouveau message -
Rectifier message
Clôturer sujet
Remonter
|
|