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
-
marksmithhfx
- VIP Livecode Opensource Backer

- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Post
by marksmithhfx » Mon Sep 26, 2011 3:06 am
jmburnod wrote:Hi Mark,
What's happen if you replace "last cd" with cd &&the num of cds like this :
Best
Jean-Marc
Hi Jean-Marc, looks good to me

macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
-
jacque
- VIP Livecode Opensource Backer

- Posts: 7389
- Joined: Sat Apr 08, 2006 8:31 pm
-
Contact:
Post
by jacque » Wed Sep 28, 2011 5:28 am
To compile a script means to click the Apply button. Every time you change/edit a script, you need to Apply (compile) it before you do anything else. You can't debug a script that has not been applied. Saving the script is not the same as compiling it; you need to specifically click Apply. Closing the script window without compiling, even if you save it, will lead to the issues you are having.
An uncompiled script in the card means that card no longer has any script at all. That's why the button can't find it. The button script will open because that's where the error first occurs. Because the engine thinks the card has no script, it can't open that one.
To fix things, open the card script. Make an insignificant change so the Apply button will enable. Then click Apply again. You should see some errors. Fix them, Apply again. If there are still errors, fix those. Apply again. Continue until you no longer get any errors. A successfuly compiled script will have a green dot in its script tab at the top of the window. Until it compiles, the engine will not think the card has a script.
There are two kinds of errors: syntax and execution errors. You must have the syntax correct before you can begin to debug the execution.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
-
FireWorx
- Posts: 362
- Joined: Wed Sep 07, 2011 9:39 pm
Post
by FireWorx » Wed Sep 28, 2011 6:29 pm
To All of you and especially to Jaque,
Thank you for sticking with me until I figured this out. The problem being I had the "Toggle the script editor tool bars" button selected in the far right upper corner of the script editor window. Thus the "Apply" button was hidden. Everything is working great now and I have a much better understanding of the entire process. After 15 years of working with HyperCard, MetaCard, Revolution, and now LiveCode this little SNAFU really had me tearing my hair out!
Best to you all! Thanks Again!
Dave
-
mwieder
- VIP Livecode Opensource Backer

- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
-
Contact:
Post
by mwieder » Wed Sep 28, 2011 6:38 pm
Wow! I've never noticed that button before. Why is that there? And it has some screen refresh problems, at least on linux.
-
mwieder
- VIP Livecode Opensource Backer

- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
-
Contact:
Post
by mwieder » Wed Sep 28, 2011 6:40 pm
...but anyway, congrats on figuring it out - it had the rest of us stumped as to why you were getting weird results and nobody else could reproduce them.
Now get back to work. <g>
-
jacque
- VIP Livecode Opensource Backer

- Posts: 7389
- Joined: Sat Apr 08, 2006 8:31 pm
-
Contact:
Post
by jacque » Wed Sep 28, 2011 6:43 pm
Ohhhhh.....I NEVER would have thought of that! I knew the button was there but I never change it. Good sleuthing, Dave.
Must scribble this into my mental notes of things to check on when someone has issues. We get so locked into our own habits that we miss the obvious.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
-
SusanB
- Posts: 111
- Joined: Mon Nov 07, 2011 4:10 am
-
Contact:
Post
by SusanB » Mon Nov 07, 2011 4:12 am
I, too, was having the same issues. So glad I checked here!
-
marksmithhfx
- VIP Livecode Opensource Backer

- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Post
by marksmithhfx » Wed Nov 09, 2011 5:02 am
SusanB wrote:I, too, was having the same issues. So glad I checked here!
Sounds like a user interface issue that could cause a lot of frustration. Glad you found the solution!
-- Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
-
spencer
- Posts: 71
- Joined: Mon May 09, 2011 3:01 pm
Post
by spencer » Thu Feb 02, 2012 12:36 pm
Try deleting your preferences file. I had that in the Dec. Game Academy with class stacks. It went away, don't know why;
might have been that "strict compilation" mode was checked, so it was not able to execute due to local variables that were undeclared. My "apply" button was visible. Might have happened that I closed the script editor window without clicking the "apply" button. Now when I edit the script, say, add a line, "put foo into tTest", do not click "apply", and close the script editor window, and save the edited script, run it, the new variable tTest has foo in it. But I'm in LiveCode 5.02, and started in 5.00, so maybe it was fixed. Like you, I went through way too much work testing what was wrong. Those preferences files should be our first place to to look for a solution.