On Sat, Jan 10, 2015 at 11:18 AM, J. Landman Gay <jac...@hyperactivesw.com>
wrote:

> 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
> "volume/folder/stack.livecode"
>
> 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.

and
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.
(702) 508-8462
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to