how to get the value of a custom property if the name of the cProperty is in a variable?
Ali Lloyd
ali.lloyd at livecode.com
Wed Aug 2 16:55:18 EDT 2017
A good reason to use consistent prefixes to distinguish custom props and
variables perhaps.
On Wed, 2 Aug 2017 at 20:56, Dr. Hawkins via use-livecode <
use-livecode at lists.runrev.com> wrote:
> On Wed, Aug 2, 2017 at 10:25 AM, Klaus major-k via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
> >
> > answer the tMyVar of this cd
> >
>
> This is an area that is awkward in live code.
>
> The use of unquoted literals for this is inconsistent with most of live
> code (but quoting would be inconsistent with the built in properties, so .
> . .)
>
> I have "loops" like
>
> repeat for each word someProp in "theOnlyPropInTheList"
>
> set the someProp of someControl to myVal
>
> end repeat
>
>
> If you have a variable whose name is the same as the property, there does
> does not seem to be a good solution.
> --
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> _______________________________________________
> 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