On 2023-10-24 18:00, Paul Dupuis via use-livecode wrote:
I think I found a oddity in the "currentCard" property.
The documentation states that the currentCard property return the short
name of the current card of a stack:
for example: put the currentCard of stack "Untitled 1" into tCardName
Well, it sure took me a while to get around to this. I guess better late
than never though. Not sure where the best place to put it, so I just
added it to my lc-misc repo on GitHub. You can find the code here:
https://github.com/bwmilby/lc-misc/tree/master/IconDrawingLibrary
Thanks,
Brian
On W
The behavior is consistent with all cards or controls that don't have a name. The "name" is the
ID in that case. The best way around it is to:
put the long id of into tID
That way you can refer to tID without worrying whether there's a literal name
or not. So:
put the long ID of the curr
NitPicking within myself, but I have always isolated variables in “do”
constructions:
do "set the myProperty of" && tCardName && "to" && tValue
Craig
> On Oct 24, 2023, at 1:59 PM, Craig Newman wrote:
>
> Paul.
>
> Having a more complete description seems right to me. You are essentially
> s
Paul.
Having a more complete description seems right to me. You are essentially
saying that if you use the moniker “the currentCard” that LC should know what
you are intending, the is, the current “card”, and not the current “something
else”.
It has to be one of those cases where, as Danny Goo
I think I found a oddity in the "currentCard" property.
The documentation states that the currentCard property return the short
name of the current card of a stack:
for example: put the currentCard of stack "Untitled 1" into tCardName
You can then execute code such as: set the myProperty of c