Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Global Variables

From: office:thousand-hills at: 30-Oct-2001 13:12

Tim: I'm not sophisticated enough in REBOL to know how to articulate this. I have a lot of really great scripts and want to make some of the "Functions" usable without actually re coding the scripts. It would also be handy to change things like attributes in one place as well. For example, I use a REBOL script to name files with a standard sorting file name based on date_time sent to the directory and the names look like something like this: 2001_1030_Tuesday_12:49PM_.txt The code is in a function called fmt_time: in a file named fmt_time.r I would like to be able to call that routine from within any script with a call, ie.. fmt_time cgi/2 (without adding the code into the same file) Can you give me the steps to accomplish this? Do I need to make these changes from the console, can they be done by running a file, will I need to rerun the file after booting? Thanks.. John At 08:12 AM 10/30/2001 -0900, you wrote: