Would like to convert some very useful HyperCard stacks

Jan Schenkel janschenkel at yahoo.com
Wed Jun 9 15:45:11 EDT 2004


--- Dale Glaser <dglaser at pacific.net> wrote:
> This is my first post to this list, so sorry if I am
> asking for 
> answers that have been posted many times.
> 

Hi Dale,

Welcome to the Revolution -- this mailing list will
happily answer your questions or point you to the
answers, so don't be shy !

> I am a HyperCard user who has designed several (for
> me) extremely 
> useful web page generator stacks and am now thinking
> of "upgrading" 
> to Revolution or SuperCard. I downloaded trials of
> both and found 
> that Revolution seemed to do a better job of
> converting my stack, 
> even though it doesn't actually work fully. I get
> error messages and 
> as a newbie am a bit stuck what to do next.
> 

One excellent bit of information is the HC-to-Rev
tutorial that Jacqueline Landman Gay has written :
<http://www.hyperactivesw.com/mctutorial/index.html>

> I am tending to go with Revolution as far as I have
> played with it, 
> but I haven't found how to work with the error
> messages or how to 
> step through and debug script as I can in HC.
> 
> So my first request is just to get some help in how
> to step through 
> my scripts in order to try and debug them.
> 

First you have to turn on the 'Debug mode' in the menu
'Development', select 'Script Debug Mode' if it
doesn't have a checkmark in front of it.

In the same menu, you'll also find the Message and
Variable Watchers.

You can make the debug kick in by using the keyword
'breakpoint' in your script :
--
on mouseUp
  put 5 into x
  ## we want to stop right here
  breakpoint
  ## now you can step or trace through the rest
  answer x
end mouseUp
--

However, these are permanent ; the Revolution script
editor also allows you to set temporary breakpoints by
clicking on the grey area to the left of the script.
When you click there, a red dot will appear, and upon
execution, the script will halt there.

The script editor doubles as debugger, and when you
hut a breakpoint, the bottom of the screen will show
buttons "Step into", "Step over", "Trace", "Run" and
"Abort"

As for lending a hand, I'm currently too swamped with
work and evening classes ; but there might be others
on this list to take you up on that offer.

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 


More information about the use-livecode mailing list