First Tutorial (Calendar): where's the script?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
saratogacoach
Posts: 87
Joined: Thu Jul 17, 2008 8:42 pm

First Tutorial (Calendar): where's the script?

Post by saratogacoach » Thu May 28, 2009 6:55 pm

Hi,

Just getting started by doing the first tutorial, the Calendar, and can't find the script to auto-populate the days of the month. Hopefully, soon enough, I'll know where to find things, but would appreciate a lead for now.

Thanks for your help.

Kind Regards,
saratogacoach
LiveCode 4.6.0, Windows 7 Home Premium 64 bit, Core i7 2.80, 8G RAM, ATI Radeon HD5770

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Thu May 28, 2009 7:51 pm

Hi Saratogacoach,

it is cleverly :wink: tucked away in the Revolution Resource Center(in the bar left of the dictionary), getting started, example 2 (Your first stack) and 3 (GUI design)

regards

Bernd

saratogacoach
Posts: 87
Joined: Thu Jul 17, 2008 8:42 pm

Post by saratogacoach » Thu May 28, 2009 8:55 pm

Hi Bernd,

Thanks for your reply.

In the tutorial, under "Populating the Calendar," is the following (bold added):
This will open a script editor in which you write your
code.
For this example your script should loop through each
of the cells in the table and insert an appropriate date
into each. An example of how to do this can be found
in the script of the stack attached to this tutorial.
Once
you have written your script you should hit the apply
button at the bottom of the script editor. This will
compile and save your script, allowing you to run it.
Having downloaded RunRev, I can't find the stack that is referred to (see quote above). I've searched in the program install folder and online in the resources, but can't locate the sample stack which I suspect contains the sample code.

Is there another place to look for the sample stack for the Calendar tutorial?

Thanks for your help.

Kind Regards,
saratogacoach
LiveCode 4.6.0, Windows 7 Home Premium 64 bit, Core i7 2.80, 8G RAM, ATI Radeon HD5770

Duncan
Posts: 13
Joined: Wed Feb 25, 2009 4:25 pm
Contact:

Post by Duncan » Thu May 28, 2009 8:58 pm

Playing hunt the script is a fun game for us newbies ;-)

Right click on the green background from the menu select Card & Stack and from the sub menu select Edit Stack Script. I am guessing that is what you are looking for.

saratogacoach
Posts: 87
Joined: Thu Jul 17, 2008 8:42 pm

Post by saratogacoach » Thu May 28, 2009 9:07 pm

Hi Duncan,

Thanks for your reply.

I'm sorry I have not been clearer. What I am looking for is the actual sample script that I would add in the script editor (which I can locate) for this Calendar project to get it to work (populate the fields I've created).

I suspect the essence of developing projects is learning how to script, understanding the syntax, operators, etc. So, I am eager to see what a sample script looks like, how its constructed, especially one that I can use in this tutorial. Unfortunately, I can't locate the sample of script that I think is referred to in the tutorial.

Kind Regards,
saratogacoach
LiveCode 4.6.0, Windows 7 Home Premium 64 bit, Core i7 2.80, 8G RAM, ATI Radeon HD5770

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Thu May 28, 2009 9:16 pm

Hi Saratogacoach,

the stack is in the Revolution Resource center. At the bottom right there is "Launch Stack". If you click this it loads the example stack. Then as Duncan said, you inspect the script of the stack. You can either choose from the Object Menu->Stack Script, or you click on the inspector in the lower menu bar and then you can choose to edit script of stack. You can also open the inspector by choosing from the Object Menu->Stack inspector.

If this does not work out just give a sign.
regards
Bernd

saratogacoach
Posts: 87
Joined: Thu Jul 17, 2008 8:42 pm

Post by saratogacoach » Thu May 28, 2009 9:20 pm

Hi Bernd,

Yes, thank you (and Duncan). I'm afraid I overlooked the download stack in the corner. :oops:

I appreciate your help.

Kind Regards,
saratogacoach
LiveCode 4.6.0, Windows 7 Home Premium 64 bit, Core i7 2.80, 8G RAM, ATI Radeon HD5770

petedskier
Posts: 2
Joined: Sat Jun 12, 2010 8:34 pm

Re: First Tutorial (Calendar): where's the script?

Post by petedskier » Sat Jun 12, 2010 8:55 pm

I am a trial user and I was working my way through the calendar tutorial. Obviously, I overlooked searching for the script (which I expect that I will be able to find), however shouldn't or couldn't the script be placed into the tutorial. Why have,
Tutorial pdf wrote:An example of how to do this can be found in the script of the stack attached to this tutorial.
in a tutorial for a new user? What is the harm in placing the script into the tutorial itself? The tutorial is not overly lengthy anyway.

wsamples
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 264
Joined: Mon May 18, 2009 4:12 am

Re: First Tutorial (Calendar): where's the script?

Post by wsamples » Sat Jun 12, 2010 10:45 pm

Don't overlook the tutorials here, which are all very well conceived, and accessible to beginners!

Post Reply