aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #1235

Forum - Forum
iziBasic - iziBasic


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

active  Topic # 1235  #Error: Object ID out of range #

24/07/2005 @ 02:22
by Ivo

Anonymous



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
  Post an answer  Top

[]   


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

Anonymous

visitor
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
Write to aldweb   Post an answer  Top

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

Anonymous

visitor
Pffiooou ... 255 Objets ... can i know what are you trying to do ...? Maybe u can use less
Write to Khertan   Post an answer  Top

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

Anonymous

visitor
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
  Post an answer  Top

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

Anonymous

visitor
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
Write to aldweb   Post an answer  Top

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

Anonymous

visitor
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
  Post an answer  Top

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

Anonymous

visitor
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
Write to aldweb   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^