We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I want to create an object list in another object and have access later to the information contained in the objects of this list. The problem is that when I create a list I can not access this list later. I will send you the address of my project if someone can help me. https://gitlab.com/codemasterjr/Schematic_Clock.git I want to create a list of object "pin" in the object "dip" which does not always contain the same number of pin. thank you in advance
Answers
Please don't link to your entire project. Please post a MCVE that shows the problem in a small example sketch.
I want to create a list or array of object "pin" in the object "dip" the number of pin will be not the same all the time. And I want to have acces to this "pin" position. Now I'm just able to draw all the "pin" on the canvas but I dont have acces to his position
The M in MCVE stands for minimal. You need to isolate the problem. Also please fix the formatting of your code using the code button (it looks like a C).
I have already try this
But went I call my object Dip in the console I dont saw the list and his Pin object.
this
object; which represents Dip's current newly instance: :-bdthis.listPin = Array(numberOfPin);
Check this: http://p5js.sketchpad.cc/sp/pad/view/VguNAYr2CN/latest
Kf
thank you very much. It works ;-)