how to get the value of a custom property if the name of the cProperty is in a variable?

Dr. Hawkins dochawk at gmail.com
Wed Aug 2 15:56:48 EDT 2017


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



More information about the use-livecode mailing list