Templates
Posted: Sat Jul 18, 2020 4:56 am
I found "template" recently in the dictionary. Other than that, I have not found much info about where it might be advantageous to use them or really even how to use them. Please point me to a LC Lesson, video, or any source which I can use to better understand them.
If I understand correctly, the template is created (card or control). Let's say I am creating a templateCard, I can set all of the properties of the new "card". However, no card really exists, right? The templateCard is only the instructions for how to create a new card. Similarly for template controls.
I have created controls before that DO exist on a card that also holds things like graphics and I copy those and add them to a new card when I use "create card" or "card new". Of course, creating cards this way means that the card's properties need to be set each time that the new card is created. I could create a function that would do this and call on that whenever a new card is created.
So, what is the difference or advantage of using templates? Am I missing something (besides not understanding how to use them best)?
TIA,
Linda
If I understand correctly, the template is created (card or control). Let's say I am creating a templateCard, I can set all of the properties of the new "card". However, no card really exists, right? The templateCard is only the instructions for how to create a new card. Similarly for template controls.
I have created controls before that DO exist on a card that also holds things like graphics and I copy those and add them to a new card when I use "create card" or "card new". Of course, creating cards this way means that the card's properties need to be set each time that the new card is created. I could create a function that would do this and call on that whenever a new card is created.
So, what is the difference or advantage of using templates? Am I missing something (besides not understanding how to use them best)?
TIA,
Linda