Problem naming groups with integers

Stephen MacLean smaclean at madmansoft.com
Sat Apr 19 21:57:30 CEST 2014


Thanks Scott!

So, even though I'm enclosing it in quotes, LC still thinks that?

Strange behavior, since it's a string and not a number, but I can deal with it. Change already made:)

Best,

Steve

On Apr 19, 2014, at 3:51 PM, Scott Rossi <scott at tactilemedia.com> wrote:

> You shouldn't use integers as names because LC thinks you're referring the number of the group.  Use a letter prefix or similar, but don't start the name with a number.
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
> 
>> On Apr 19, 2014, at 12:34 PM, Stephen MacLean <smaclean at madmansoft.com> wrote:
>> 
>> Hi All,
>> 
>> I have a list where I name the groups shown with integers (i.e. the id of the record in the db).
>> 
>> When I inspect the group, it shows as: group "11957", id 459899
>> 
>> It seems that LC has a problem with finding those groups. When I try to set a property or object contained in the group, I get "Error description: Chunk: can't find background"
>> 
>> When I put: answer there is a group "11957" into the message box, with the integer in quotes, it return false
>> 
>> It doesn't matter if I put answer there is a group "11957" of cd "messages" of this stack, it still returns false.
>> 
>> Changing the name of the group to something like "11957A" and the above will answer true.
>> 
>> Is this a bug or to prevent names from interfering with LC being able to recognize id's? It seems weird if that is the case, because if you reference by id, you need to use id to preface the integer:
>> answer there is a group id 459899
>> 
>> Anyone have a favorite way of dealing with this?
>> 
>> Thanks,
>> 
>> Steve MacLean
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list