AW: WEIRD: code changes the code instead of a field
Tiemo Hollmann TB
toolbook at kestner.de
Wed Mar 22 04:06:05 EDT 2017
Hi Jacque,
I have filed this bug with an easy one liner recipe, but now have seen, that
it is known since 2013 in the QC.
Tiemo
-----Ursprüngliche Nachricht-----
Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag
von J. Landman Gay via use-livecode
Gesendet: Dienstag, 21. März 2017 15:15
An: How to use LiveCode <use-livecode at lists.runrev.com>
Cc: J. Landman Gay <jacque at hyperactivesw.com>
Betreff: Re: WEIRD: code changes the code instead of a field
There's a problem with the script editor losing track of the defaultstack
during debugging. I see it when it tells me that it can't find a control on
the card I'm looking at. It's applying all references to itself.
I haven't been able to get a consistent recipe to report the problem but
since you have one, it would be great if you could submit a report.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 21, 2017 5:53:07 AM Tiemo Hollmann TB via use-livecode
<use-livecode at lists.runrev.com> wrote:
> Hello,
>
> LC 9.0, dp4, Win10: Fiddling around creating a password field I am
> encountering a very weird phenomenon. Stepping thru my code with the
> debugger my code modifies my code instead of a field. Recipie:
>
> - Create a new stack
>
> - Create a new field
>
> - Put the code into the field:
>
>
>
> on keyDown pKey
>
> put numToChar(42) into the selectedChunk -- numToChar(42): "*"
>
> end keyDown
>
>
>
> - Apply the code
>
> - Set a breakpoint (red dot) at the only statement
>
> - Switch to browse tool and enter one character into the field
>
> - Use the "step into" for executing the code
>
> - See what happened to your code?
>
> - The complete line of code is replaced by an asterisk! Funny
huh?
>
>
>
> Any comments?
>
> Tiemo
>
>
>
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list