aldweb

Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]
Recherche




Météo / Spam / www

Météo Lyon


aldweb contre le SPAM


Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
298 Abonnés
Sites web de la famille

Webmaster - Infos
News Amis
Visites

   visiteurs

   visiteurs en ligne

Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
forum.gifForum - iziBasic - Sujet n°1235

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

actif  Sujet n° 1235  #Error: Object ID out of range #

le 24/07/2005 @ 02:22
par Ivo

Anonyme



Hi there

My Palm is a Zire 72.
How may i use more than 255 objects (ID number greater than 255) ?
In page 37 of the manual says that the range of ID is 1...999, but i receive the message when trying to use Id = 256

Thanks
  Poster une réponse  Haut

[]   


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1
--------
le 24/07/2005 @ 10:35
par aldweb

Anonyme

visiteur
Hello Ivo,

The range should indeed be [1..999].
On what type of object do you get this error? Could you post here the one or two lines of code that are involved in this error message?

Cheers,
aldweb
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2
--------
le 24/07/2005 @ 19:26
par Khertan

Anonyme

visiteur
Pffiooou ... 255 Objets ... can i know what are you trying to do ...? Maybe u can use less
Ecrire à Khertan   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 3
--------
le 26/07/2005 @ 01:41
par Ivo

Anonyme

visiteur
Hi aldweb

I'm trying to do a game ("navy battle"? in potuguese is "batalha naval") with a grid of 15 x 15 pushbutton. a sample of code is:
Begin
'loop for create all buttons or
gosub criabtns
end
criabtns:
s=0
x=4
y=24
n=300
pushbutton #n,".",s,x,y,w,h
return

Thanks
  Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 4
--------
le 26/07/2005 @ 09:57
par aldweb

Anonyme

visiteur
Hello Ivo,

Indeed there is an issue for objects with an ID (#n) > 255. It does not seem to be related to my own iziBasic source code, but potentially from the compiler used for iziBasic being the great PP compiler.

So, let's wait for a solving.

Meanwhile, you can easily optimize your code and Khertan is right: the use of many objects is not really recommended as they reserve a lot of space in the memory heap... even though your way of doing was really helpful to figure out this bug

For a "batalha naval" ("bataille navale" in French ) kind of game, I would recommend you, if you allow me to give you an advice, to use images to draw the game board and to track the pen position to know what cell in the grid was chosen by the user.
This way of doing would be much more memory optimized...

Cheers,
aldweb
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 5
--------
le 26/07/2005 @ 23:23
par Ivo

Anonyme

visiteur
Hi
aldweb

I will try to use boxfilled to put the pieces and posx, posy to capture where the player taped in (have you any idea?).

Thanks
  Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 6
--------
le 27/07/2005 @ 10:50
par aldweb

Anonyme

visiteur
Hello Ivo,

I will send you via e-mail a beta release of the next version that I built yesterday evening which solves this issue for object IDs > 255.
Then, it is up to you: or keep working on your current source code or work on the proposed optimization

Cheers,
aldweb
Ecrire à aldweb   Poster une réponse  Haut
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 



 
^ Haut ^