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

hh hh at hyperhh.de
Tue Aug 8 15:59:14 EDT 2017


> Richard H. wrote:
> I'm also bothered by *not* being able to use a text literal in quotes;
> I'm generally vary careful about declared variables, etc. (I'd really
> like an option to enforce case in variable names!)

on mouseUp
  put "hello" into p1
  put quote&"hello"&quote into p2
  set the p1 of me to "new1"
  set the p2 of me to "new2"
  put the p1 of me && the p2 of me
end mouseUp

This works here as it should.
The keys become "hello" (incl.quotes) and hello (without quotes).

What do I not understand in your statement above?
What do you mean by "use a text literal in quotes"?




More information about the use-livecode mailing list