Id numbers vs names
Shari
shari at gypsyware.com
Sat Feb 26 11:09:31 EST 2005
>well using ID numbers has certain drawbacks indeed, but also
>some benefits, especially in Rev where successive controls
>have incremental ID numbers (when in HC AFAIR they used to
>be created at random) : for instance in a project I had to create
>400 graphics to be included in a group : referencing each graphic
>by its ID number was pretty easy and very convenient...
>
>JB
That's what I used the ID for initially as well. I created 122 btns,
and needed to be able to reference them in a repeat handler. So
using the ID seemed so simple.
But now I need to add other btns to it. And during various updates
made changes that deleted btns. So there are skips in the ID number
range.
Also, the new code will handle the btns altogether differently than
before, and needs a better way of referencing them.
Ah well, onto it! The change will make lots of folks happy. (It is
one of the most requested features for the game that I'm now working
on....)
--
Mac and Windows shareware games
http://www.gypsyware.com
More information about the metacard
mailing list