On 2/21/11 7:05 AM, Richard Gaskin wrote:
I guess the only upside here is that so far it appears as though "it" is
indeed reliable as long as you use "create", and workarounds are only
needed in some cases where you create objects by other means.
I stand corrected, at least in part: while look
J. Landman Gay wrote:
On 2/20/11 10:37 PM, Richard Gaskin wrote:
dunbarx wrote:
> It is not stable. Scott is correct in that we all agreed that the
> only reliable workaround was to use the templateGroup to advantage.
Sorry, but I missed that meeting: under what circumstances does the
local
On 2/21/11 2:47 AM, Terry Judd wrote:
On 21/02/11 5:24 PM, "J. Landman Gay" wrote:
When you aren't using "create", the "it" variable has no value:
select control 1 and control 2
group
put it
Produces nothing.
But in that case you could use the selectedObject.
--
Jacqueline
On 21/02/11 5:24 PM, "J. Landman Gay" wrote:
> When you aren't using "create", the "it" variable has no value:
>
>select control 1 and control 2
>group
>put it
>
> Produces nothing.
But in that case you could use the selectedObject.
Terry...
--
Dr Terry Judd | Senior Lecturer in
Thanks to all for the input. I should have provided more context so here goes
in pseudo code.
- create a datagrid and its template by script
- issue a group command naming the datagrid
- refer to the "last group" to rename it
- the "last group" is a group named "dghorizontals' within the datagri
On 2/20/11 10:37 PM, Richard Gaskin wrote:
dunbarx wrote:
> It is not stable. Scott is correct in that we all agreed that the
> only reliable workaround was to use the templateGroup to advantage.
Sorry, but I missed that meeting: under what circumstances does the
local var "it" not contain th
dunbarx wrote:
> It is not stable. Scott is correct in that we all agreed that the
> only reliable workaround was to use the templateGroup to advantage.
Sorry, but I missed that meeting: under what circumstances does the
local var "it" not contain the long id of the newly-created group object
d be able to find the last group by name. Also, trapping 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: Richard Gaskin
To: use-livecode@lists.runrev.com
Sent
Peter Haworth wrote:
> The dictionary says I can refer to the group created by the group
> command by using the last keyword as in "last group". Has anyone
> used this successfully?
As the others here have noted, it's possible to create a group such that
it won't be ordinally last.
Instead,
Recently, Peter Haworth wrote:
> The dictionary says I can refer to the group created by the group command by
> using the last keyword as in "last group". Has anyone used this successfully?
> For me, it is returning information about a group with a lower ID than the one
> created by the group com
On Feb 20, 2011, at 4:18 PM, Peter Haworth wrote:
The dictionary says I can refer to the group created by the group
command by using the last keyword as in "last group". Has anyone
used this successfully? For me, it is returning information about a
group with a lower ID than the one creat
"Last" may report a group with lower ID, since the last-created group may be
inside another group that existed before it (and therefore likely has a lower ID
than it), but not a lower number. That's what "last" refs to - its 'number' or
layer. At least that's what I would expect.
Phil
On 2/2
12 matches
Mail list logo