Script arguments
[1/2] from: peter:carlsson:space:se at: 11-Oct-2000 11:12
Hello!
When calling a script from within the console I don't manage
to pass any arguments to the script.
Passing arguments when starting up REBOL itself works but
not when REBOL is already started.
Could someone please help me?
Best regards,
Peter Carlsson
----------------------------------------------------------------
Peter Carlsson Tel: +46 31 735 45 26
Saab Ericsson Space AB Fax: +46 31 735 40 00
S-405 15 Göteborg Email: [peter--carlsson--space--se]
SWEDEN URL: http://www.space.se
[2/2] from: al::bri::xtra::co::nz at: 11-Oct-2000 2:31
Peter Carlsson wrote:
> When calling a script from within the console I don't manage to pass any
arguments to the script.
> Passing arguments when starting up REBOL itself works but not when REBOL
is already started.
> Could someone please help me?
>> help do
USAGE:
DO value /args arg /next
DESCRIPTION:
Evaluates a block, file, URL, function, word, or any other value.
DO is a native value.
ARGUMENTS:
value -- Normally a file name, URL, or block (Type: any)
REFINEMENTS:
/args -- If value is a script, this will set its system/script/args
arg -- Args passed to a script. Normally a string. (Type: any)
/next -- Do next expression only. Return block with result and new
position.
>> do/args %MyScript-that-takes-an-arg.r "My nifty args in a string."
Andrew Martin
Twiddling thumbs while downloading umpteen megabytes of Java...
ICQ: 26227169
http://members.nbci.com/AndrewMartin/