opening a stack without changing current stack order?
dochawk at gmail.com
Fri Feb 20 11:54:29 EST 2015
On Sat, Jan 10, 2015 at 11:18 AM, J. Landman Gay <jacque at hyperactivesw.com>
> Is the stack in RAM? You can get any property of anything if the stack is
> in memory and you provide a full reference:
> get the formattedheight of fld x of cd y of stack z
> It doesn't even have to be the current card of that stack. If the stack is
> not in RAM you don't need to specifically open it, you can do the same
> thing by refering to the stack by its file path:
> get the formattedheight of fld x of cd y of stack
> When you refer to a stack that way, it is placed in RAM but is not
> officially "opened" per se, there are no messages sent to it, and it is not
> in the message hierarchy
I've been meaning to reply for some time now.
The dictionary says
The object must be on the current card of an open stack.
If you specify an object in a group, the value reported is the
formattedHeight that object requires for the current card, so if you want
to get the formattedHeight of a field's text on a certain card, you must go
to that card first.
Does the full reference you suggest make that card the current card for
this purpose? Or perhaps the dictionary is wrong or outdated?
Dr. Richard E. Hawkins, Esq.
More information about the Use-livecode