• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Notepad Example (Questions)
#2
(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.
  Reply


Messages In This Thread
Notepad Example (Questions) - by Paul - 04-25-2019, 11:34 PM
RE: Notepad Example (Questions) - by Linda Lu - 04-26-2019, 12:24 AM
RE: Notepad Example (Questions) - by Paul - 04-26-2019, 01:37 AM
RE: Notepad Example (Questions) - by mark_talluto - 04-26-2019, 05:07 AM
RE: Notepad Example (Questions) - by mark_talluto - 04-26-2019, 06:24 PM
RE: Notepad Example (Questions) - by Paul - 04-26-2019, 07:34 PM
RE: Notepad Example (Questions) - by mark_talluto - 04-26-2019, 11:30 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)