Problem naming groups with integers

Peter Haworth pete at lcsql.com
Sat Apr 19 19:05:52 EDT 2014


I think the same advice applies to datagrid column names.

Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>


On Sat, Apr 19, 2014 at 1:13 PM, Scott Rossi <scott at tactilemedia.com> wrote:

> IMO, using numbers as names is just something to avoid in LC.  As you've
> found, names that are only numbers will cause problems.  Better/safer to
> adopt a different naming convention.
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
>
> > On Apr 19, 2014, at 12:57 PM, Stephen MacLean <smaclean at madmansoft.com>
> wrote:
> >
> > 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
> >
> >
> >
> > _______________________________________________
> > 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