AW: how to adress the object name and not the number?

Tiemo Hollmann TB toolbook at kestner.de
Thu Apr 19 06:00:55 EDT 2007


Mercie again Eric for your explanations, I will follow them
Tiemo

> -----Ursprüngliche Nachricht-----
> Von: use-revolution-bounces at lists.runrev.com [mailto:use-revolution-
> bounces at lists.runrev.com] Im Auftrag von Eric Chatonet
> Gesendet: Donnerstag, 19. April 2007 11:51
> An: How to use Revolution
> Betreff: Re: how to adress the object name and not the number?
> 
> Hi again,
> 
> Naming objects with numbers is not really a good idea: this can
> confuse Rev... and the programmer :-)
> But you have many ways to achieve the goal:
> 
> Name each image with a name followed by a numeric suffix: "img1'.
> Then:
> 
> repeat with i = 1 to the number of imgs
>    if the threeD of img ("img" & i) then etc.
>    -- just an example :-)
> end repeat
> 
> Set the ID of each image to build a series (images are the only
> objects the ID of which you may change as you want):
> Then:
> 
> repeat with i = ID1 to ID2
>    if the threeD of img ID i then etc.
> end repeat
> 
> BTW, setting the filename of an image means to refer it to a file on
> disk: according to the version of Rev you use, such a filename *must*
> be a complete or a relative path.
> The way you say it may be used with Rev 2.8 when images are in the
> same folder as the stack that uses them.
> 
> Le 19 avr. 07 à 11:32, Tiemo Hollmann TB a écrit :
> 
> > I think I have to stumble into every newbee pit and I think I have
> > read a
> > similar thread, but don't find it anymore.
> >
> > I have multiple images on a page which I gave numeric names to be
> > able to
> > process them in loops (that was my thinking).
> >
> > If I address theses images as:
> >
> > set  the filename of image "1"  .
> >
> > rev doesn't take the image with name 1, but number 1, though I put
> > the 1
> > into apostrophe???
> >
> > How can I force rev to take the image with name "1" or do I have to
> > take
> > only alpha names?
> >
> > Any hint appreciated
> >
> > Tiemo
> 
> Best regards from Paris,
> Eric Chatonet.
> ----------------------------------------------------------------
> http://www.sosmartsoftware.com/
> eric.chatonet at sosmartsoftware.com/
> ----------------------------------------------------------------
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list