Re: Copy to Group problems - solved!

2012-01-17 Thread Richard Gaskin
FWIW, I submitted a request some time ago to the RQCC to have "it" contain the long ID of the newly-created object whenever a command creates one: This is currently done with the "create" command (with the exception of "create folder", as noted

Re: Copy to Group problems - solved!

2012-01-17 Thread Keith Clarke
That's an interesting distinction, especially as it's often the case that both are true when creating new objects - the last (most recent) becomes the last (highest numbered). The fallacy of the first rule is only proven when a new object is created and forced down the 'recency' scale - by pla

Re: Copy to Group problems - solved!

2012-01-16 Thread Bob Sneidar
OIC not the "last object that was created" but the "last object in the numbered list of objects"! I think you may be right about that! Bob On Jan 16, 2012, at 1:28 PM, J. Landman Gay wrote: > On 1/16/12 2:17 PM, user wrote: >> First of all, thanks to all of you who offered advice on this >> p

Re: Copy to Group problems - solved!

2012-01-16 Thread Mark Wieder
Jacque- Monday, January 16, 2012, 1:28:22 PM, you wrote: > I'm not sure it's really a bug. I think the "last" keyword refers to the > highest-numbered object. If you put an object into a group, it won't be > the highest number unless the enclosing group is also the highest > numbered object. En

Re: Copy to Group problems - solved!

2012-01-16 Thread J. Landman Gay
On 1/16/12 2:17 PM, user wrote: First of all, thanks to all of you who offered advice on this problem, with special thanks to Craig Newman for definitively pointing out that "The "last" keyword is not stable when referring to groups." - apparently a LC bug I'm not sure it's really a bug. I thin

Copy to Group problems - solved!

2012-01-16 Thread user
First of all, thanks to all of you who offered advice on this problem, with special thanks to Craig Newman for definitively pointing out that "The "last" keyword is not stable when referring to groups." - apparently a LC bug After doing a little exploring through the dictionary for a workaround,

Re: Copy to Group problems

2012-01-15 Thread dunbarx
apping the "newGroup" message with an appropriate script can be used to find the last group. This is not an issue with other objects, Craig Newman -Original Message- From: Pete To: How to use LiveCode Sent: Fri, Jan 13, 2012 11:49 am Subject: Re: Copy to Group proble

Re: Copy to Group problems

2012-01-14 Thread Thomas McGrath III
Alan, nextName is not just a number, but text and a number and you are trying to do math on an item of it, so I don't think you can just add a number to it. Try: set itemDelimiter to "_" put last item of nextName into tLastNumber add 10 to tLastNumber put tLastNumber into last item of nextName

Copy to Group problems

2012-01-13 Thread user
Hi everyone, I have a script intended to add, name and position a label and field group (which I refer to as a "doublet) into a group that already has a number of such doublet groups. Here's the script: on addFldDoublet theGroup put the number of grps in grp theGroup into lastDoublet

Re: Copy to Group problems

2012-01-13 Thread Bob Sneidar
Another possibility is to make sure none of your groups have "group" as a part of the short name (they do by default) and then check to see if any new group you *think* you have created is actually the one you want by making sure it's short name begins with the word "group". If not, loop through

Re: Copy to Group problems

2012-01-13 Thread Pete
Not sure if you'll classify this as "help" but I've had problems in the past referring to "the last group" not returning what I considered to be the last group, although I can't explain what you see in your answer commands. The dictionary doesn't mention if the copy command returns the id of the c

Re: Copy to Group problems

2012-01-13 Thread J. Landman Gay
On 1/13/12 2:55 PM, user wrote: on addFldDoublet theGroup put the number of grps in grp theGroup into lastDoublet put the short name of grp lastDoublet of grp theGroup into lastName put the left of grp lastName into newLeft put (the bottom of grp lastName +2) into newTop put

Copy to Group problems

2012-01-13 Thread user
Hi everyone, I have a script intended to add, name and position a label and field group (which I refer to as a "doublet) into a group that already has a number of such doublet groups. Here's the script: on addFldDoublet theGroup put the number of grps in grp theGroup into lastDoublet put