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 "
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 (
I second Eric's suggestion. It also comes in handy for keeping track
of images/objects for different purposes, e.g. "thumb1", "main2",
"preview3", "temp4" etc.
Looping through and deleting all the 'temp' images then becomes very
easy.
Ian
On 19 Apr 2007, at 10:51, Eric Chatonet wrote:
etreff: 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 fo
Hi,
Another way is to just put all images in a category into a Group,
then to access the images do something like:
repeat with myIndex= 1 to the number of images in group "ThumbGroup"
set the threeD of image myIndex of group "ThumbGroup" to true
end repeat
Just change the layer (in the ID
Nice idea!
Thanks Tiemo
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:use-revolution-
> [EMAIL PROTECTED] Im Auftrag von Dave
> Gesendet: Donnerstag, 19. April 2007 16:06
> An: How to use Revolution
> Betreff: Re: how to adress the object name and not t
If the controls are already arranged in *other* groups that's not
going to work.
Ian
On 19 Apr 2007, at 15:05, Dave wrote:
Hi,
Another way is to just put all images in a category into a Group,
then to access the images do something like:
repeat with myIndex= 1 to the number of images in
Ok good hint Ian
Thanks Tiemo
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:use-revolution-
> [EMAIL PROTECTED] Im Auftrag von Ian Wood
> Gesendet: Donnerstag, 19. April 2007 16:37
> An: How to use Revolution
> Betreff: Re: how to adress the object name
The recommendation to name objects starting with a letter and then a number
is simply a "must" because as others have pointed out there can be ambiguity
when referencing objects named with simply a number. Two additions to the
excellent ideas:
1) Remember that the object number always refers t
Using a space char is a personal programming choice, and certainly not a bad
one. My preference is to use a "0" as a pad character, especially for date
strings, object names, file names, and folder names.
Thus I use the less convenient form of
put columnName & ( char -2 to -1 of ("0"& i) ) int
Jim Ault wrote:
by not using spaces in field names, you do not have to use quotes, such as
put 451 into fld cellValue01 vs fld "cellValue 1"
Just a caution that this may come back to bite you some day if (or
perhaps, when) Rev ever gets pickier about unquoted literals. Unquoted
literals al
Good point Bill. Thanks for sharing!
Tiemo
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:use-revolution-
> [EMAIL PROTECTED] Im Auftrag von Bill Marriott
> Gesendet: Freitag, 20. April 2007 02:14
> An: use-revolution@lists.runrev.com
> Betreff: Re: how to
Hi Bill,
As Jim said: using a space char is a personal programming choice, and
certainly not a bad one ;-)
As for me, I prefer to name any object with a single word
("LastBackupDate5" for instance) and *always* quoted even if XTalks
don't make it compulsory in this case.
And to retrieve the
Eric,
I prefer to name any object with a single word
("LastBackupDate5" for instance) and *always* quoted even if XTalks
don't make it compulsory in this case.
And to retrieve the right suffix, instead of using last word, I just
use char x to -1:
<<<
Right! I always, always quote string liter
Hi Bill,
I understand you *must* specify the number of chars of the label
prefix that may vary in my solution and I understand also it might
bother you :-)
So:
function NumericSuffix pStr
local tCount
-
if pStr = empty then return "error: empty string."
repeat with tCount = the
On 20 Apr 2007, at 09:44, Bill Marriott wrote:
Eric,
I prefer to name any object with a single word
("LastBackupDate5" for instance) and *always* quoted even if XTalks
don't make it compulsory in this case.
And to retrieve the right suffix, instead of using last word, I just
use char x to -
On 20 Apr 2007, at 09:44, Bill Marriott wrote:
Eric,
I prefer to name any object with a single word
("LastBackupDate5" for instance) and *always* quoted even if XTalks
don't make it compulsory in this case.
And to retrieve the right suffix, instead of using last word, I just
use char x to -
17 matches
Mail list logo