Indigo Rose Software
  #1  
Old 01-07-2008
Mina's Avatar
Mina Mina is offline
Forum Member
 
Join Date: Oct 2005
Location: American Dubai
Posts: 629
GoToAndRun()

How about this action?
GoToAndRun(LineNumber = number)

[ Goes to Line number X and runs the script ]

This could be helpful, Big Time

Thanks,
Reply With Quote
  #2  
Old 01-07-2008
Darryl's Avatar
Darryl Darryl is offline
Indigo Rose Staff Member
 
Join Date: Jul 2001
Location: Indigo Rose Software
Posts: 1,602
Thanks for the suggestion Mina. REF: 17113
__________________
Darryl
Indigo Rose Corporation

Product Guides: AMS70 | SUF80 | TU30 | VP30 |MSIFACT |DeltaMAX
Reply With Quote
  #3  
Old 01-07-2008
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
I think you'd be better off using functions. Using a line number as the target for a goto is just asking for trouble. (Add or remove one line from the beginning of the script, and all of your GoToAndRun calls need to be changed.)
__________________
--[[ Indigo Rose Software Developer ]]
Reply With Quote
  #4  
Old 01-07-2008
Mina's Avatar
Mina Mina is offline
Forum Member
 
Join Date: Oct 2005
Location: American Dubai
Posts: 629
Quote:
Originally Posted by Lorne View Post
Using a line number as the target for a goto is just asking for trouble. (Add or remove one line from the beginning of the script, and all of your GoToAndRun calls need to be changed.)
Hmm then perhaps a GoToAndRun(Label) would be more safe. People might be able to set labels using the script window itself?

Right now I use functions, and I'm very pleased
Reply With Quote
  #5  
Old 01-08-2008
eric_darling's Avatar
eric_darling eric_darling is offline
Indigo Rose Customer
 
Join Date: Jun 2002
Location: Southeast USA
Posts: 1,804
AMS used to use labels and goto commands. I missed them when they were first removed in AMS 5. After time, I realized that not only was the goto/label structure a piece of antiquated programming architecture, but with use of functions, and some more economical coding practices, it was also outmoded. I haven't thought about it in awhile, so I guess I don't miss goto/label too badly at all!
__________________
Eric Darling
eThree Media
http://www.ethreemedia.com
Reply With Quote
  #6  
Old 01-08-2008
holtgrewe holtgrewe is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: Just South of Reality
Posts: 732
Grace Hopper is rolling over in her grave right now...

OMG am I showing my age?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 10:51 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software