04-26-2019, 12:24 AM
(04-25-2019, 11:34 PM)Paul Wrote: I've been studying the NotePad example.
1- In design mode, I clicked on the little Disk icon and then right click, Edit script. Looking for the code that did the actual saving nothing was there. The Save button works fine. If I don't press Save, the data is not saved. But where's the code?
2- Also, looking around at what code I could find, mosting in the Stack Initialization area, there seems to be lots of references to Behaviors. Is this something I need to read up and understand to utilize CanelaDB
Hi Paul,
The notepad sample app has one behavior assigned to the "main" card in the "notepad" stack. This behavior stores all the code that is used to generate UI and perform CRUD operations in the app such as saving your data. If you open the project browser in LiveCode, you can see the structure of the app and where the code is located.
Understanding behaviors in LiveCode is not necessary to create a CanelaDB app. It is a method of organizing scripts that we use.