Custom property question

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Custom property question

Post by dunbarx » Fri Feb 26, 2016 5:23 pm

Always gratifying to know that I need to go to the beginners section now and again.

Why this?

Code: Select all

on mouseUp
   set the xyz of me to "XYZ"
   answer the xyz of me --Good, I get "XYZ"
   put 10 into xyz
   answer the xyz of me --Hmmm...empty
end mouseUp
I was about to act like a big shot in another thread, and say that the contents of the variable xyz has nothing at all to do with a custom property named "xyz". For some reason I checked. For some other reason, I was wrong.

Craig Newman

Post Reply