How to adress two customPropertySet ? [Solved]

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
atout66
Posts: 266
Joined: Wed Feb 02, 2011 12:31 pm

How to adress two customPropertySet ? [Solved]

Post by atout66 »

Hi to all,

After some research in the dictionnary and in this forum, i didn't find the answer to this problem:
I declare 2 customPropertySet that way (not sure if it's the right one :!: ):

Code: Select all

set the customPropertySet of image "doublon" of laCard to EMPTY
set the customPropertySet of image "doublon" of laCard to "cLePremierDoublon"
set the customPropertySet of image "doublon" of laCard to "cLeSecondDoublon"
I've read from Kaus and others in different post that customPropertySet are treated as array for card and stack.
Here, it's an image.
The <cLePremierDoublon> customPropertySet will store for example; cMyValue1 , cMyValue2 , cMyValue3.
Same for the <cLeSecondDoublon> customPropertySet
Question: if I want to get the value of <cMyValue2 > within <cLePremierDoublon>, how can I do that ?

Thanks in advance for your help, Jean-Paul.
Last edited by atout66 on Thu May 15, 2014 2:08 pm, edited 1 time in total.
Discovering LiveCode Community 6.5.2.
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to adress two customPropertySet ?

Post by Klaus »

Hi Jean-Pau,

my name is Klaus, with an L :D

And yes, you need to use array notation:
## property_set_name[Name_of_key]
...
put the cLePremierDoublon[cMyValue] of laCard into tCp_set_key1
put the cLeSecondDoublon[cMyValue] of laCard into tCp_set_key2
## etc...
...


Best

Klaus
atout66
Posts: 266
Joined: Wed Feb 02, 2011 12:31 pm

Re: How to adress two customPropertySet ?

Post by atout66 »

Oh sorry Klaus, my finger run faster than my mind or it's the opposite ?
OK, so it's an array also, then thank you for your help and be sure there is no offense :wink:

Kind regards from Jean-Pau :mrgreen:
Discovering LiveCode Community 6.5.2.
Post Reply