how to adress the object name and not the number?

Ian Wood revlist at azurevision.co.uk
Fri Apr 20 05:26:54 EDT 2007


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 -1:
> <<<
>
> Right! I always, always quote string literals as well, even though  
> Rev will handle it for me if I don't.
>
> But on the other idea, this is exactly the problem I'm trying to  
> solve. :) It's cumbersome because you've got the problem of a  
> variant number of items and length of the label prefix.

I use an underscore between the alphanumeric prefix and the  
identifying number. ;-)
Single word object names, plus it's easy to deal with varying lengths  
simply by using:

set the itemdelimiter to "_"

Ian

P.S. I didn't even *know* you could leave string literal names  
unquouted...



More information about the use-livecode mailing list