Spécial ! |
 Version mobile de l'aldweb Site m.aldweb.com  Ni Français, ni Anglais ?Essayez donc l'un de ces drapeaux : ![[pt]](img/pt.gif)
|
|
Météo / Spam / www |
Météo Lyon

aldweb contre le SPAM 


|
|
|
 |
|
 |
|
- Forum
- iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 1133 |
IZI5 - Bug in AboutBox? |
le 26/02/2005 @ 16:28 par Montalvo

|
Why and already working source code in 4.2 with a regular ABOUTBOX now doesnt work compiled with iziBasic 5?
A possible bug? Could anyone confirm it?
|
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1 -------- le 26/02/2005 @ 16:33 par aldweb

visiteur |
In page 96 of the user manual (yes, I know, nobody reads these pages) is written: "The ABOUTBOX and MENU statements can now be set up and changed dynamically at runtime.". So, it might be worth doing a jump to the ABOUTBOX statement definition on page 37. In the Notes part, is written: "As from version 5.0, the AboutBox can be managed dynamically at runtime and is no more built once at compilation time. This means that you should define your AboutBox after the BEGIN statement to have it taken into account.".
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 26/02/2005 @ 16:44 par Montalvo

visiteur |
Ouch! (my front head is bleeding after been hit with that) 
Definitively, I need vacations, sleep well or drink less cofee.
Yeap. That solves the problem. By the way, I receive your updated manual, so I will modify the QuickRef according to it, and I will post it soon (this afternoon).
Thanks!
|
|
 |
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 3 -------- le 26/02/2005 @ 16:47 par enotar

visiteur |
Can you explain a little more plz Maybe a sample of code Thank you |
|
 |
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 4 -------- le 26/02/2005 @ 16:48 par aldweb

visiteur |
Please cure quickly your head my friend 
I did not intend to hurt you 
I was just too happy to easily solve this first possible bug report for this brand new version 5 
Cheers
@+ aldweb |
|
 |
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 5 -------- le 26/02/2005 @ 17:00 par aldweb

visiteur |
Sure,
Before you could do either:
ABOUTBOX "Hello" BEGIN ... END or
BEGIN ... ABOUTBOX "Hello" ... END
But you could not do:
ABOUTBOX "Hello" ... ABOUTBOX "Bye"
Now, you can do:
BEGIN ... ABOUTBOX "Hello" ... ABOUTBOX "Bye" ... END
Cheers
@+ aldweb |
|
 |
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 6 -------- le 26/02/2005 @ 17:03 par Montalvo

visiteur |
Before iziBasic 5.0:
'tuno.ibas {creatorID "mCoU"}
const x$="Program created¶" const y$="by MComm" aboutbox x$+y$
Begin gprint "Hello!",50,50 wait End
Now, you have to MOVE the place where the ABOUTBOX is defined as follows:
'tuno.ibas {creatorID "mCoU"}
Begin
const x$="Program created¶" const y$="by MComm" aboutbox x$+y$
gprint "Hello!",50,50 wait End
P.S. Fronthead is now stitched.. 
|
|
 |
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 7 -------- le 26/02/2005 @ 17:09 par aldweb

visiteur |
Answer to PS... Yes, but in return you get to be able to change your about box at runtime.
BEGIN ABOUTBOX "Program created by Montalvo" GPRINT "Hello!",50,50 WAIT ABOUTBOX "Program destroyed by Montalvo" GPRINT "Bye Bye!",50,50 WAIT END
@+ aldweb |
|
 |
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 8 -------- le 26/02/2005 @ 17:24 par enotar

visiteur |
Thank you but why in MENU there is the same problem. Cannot attach a menu from resources #ressource ID out of range# Resource :1100 Tkz |
|
 |
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 9 -------- le 26/02/2005 @ 17:36 par aldweb

visiteur |
Because, as error message says it, the resource ID should be in the [1..999] range as it is always the rule in iziBasic 
@+ aldweb |
|
 |
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 10 -------- le 26/02/2005 @ 17:46 par enotar

visiteur |
OK Is there a sample somewhere in the board on how to attatch a menu with a ressource? Thank you |
|
 |
 sujet actif
 sujet clos
 Important!
 Nouveau message -
 Rectifier message
 Clôturer sujet
 Remonter
|
|
 |
|
 |
|