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

Paul Hibbert paul at livecode.org
Wed Aug 2 23:02:52 EDT 2017


> 
> 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?

Using the “do” command, a quick test and this works OK:

	on mouseUp
		put "cMyProp" into tMyVar

		do "put the" && tMyVar && "of this card into fld 1"

	end mouseUp


Paul


More information about the use-livecode mailing list