If the handler is in the same script as the constant, why would you? A constant 
is for representing values that do not change after compile. Variables are for 
values that change during runtime. I cannot imagine a use case for putting a 
constant name into a variable, although I have thought about the need to get 
the constant from another script, until I remembered it's just easier to set a 
custom property. 

In fact (I think I've said so before) custom props are a great way to mimic 
scoped variables, and even constants. For instance all my datagrids have a 
property tablename containing the name of the table I query to populate it. 

Bob S


> On Aug 2, 2017, at 10:20 , Matthias Rebbe via use-livecode 
> <[email protected]> wrote:
> 
> Hi,
> 
> let´s say a card has a custom property name cMyProp.
> 
> The variable tMyVar contains the word “cMyProp”
> 
> How do i get the value of the custom property using the variable tMyVar?
> 
> Regards,
> Matthias
> 
> 
> 
> Matthias Rebbe

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to