Hi.
You have plenty to think about. But maybe something more concrete will get you 
started. You are certainly game. Make two new stacks. They will be named 
"untitled 1" and "untitled 2". No matter.


In stack "untitled 1" place a button. In its script put:
on mouseUp
   start using stack "untitled 2" 
   addTen 15
end mouseUp


In the script of stack "untitled 2" place this in the stack script:
on addTen var
  answer var + 10
end addTen


Whenever you place that "library" stack in use, which can be done at the 
beginning of each session if you want (could be a plug-in) you will have the 
ability to add 10 to any number from absolutely anywhere in LC.


Now this will break if you send a parameter that is not a number, so it needs 
beefing up. But the point is that you now have a library stack. Save it. Keep 
it. You can add as much stuff to it as you wish, including functions. the trick 
is to get the way it works.


Craig








 
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to