Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Passing arguments to script
Pages: [1] Print
Author Topic: Passing arguments to script  (Read 284 times)
Stuart
Guest


Email
Passing arguments to script
« on: November 01, 2004, 09:29:51 AM »

I am having a terrible time trying to pass an argument to a rebol script.

Basically I want to pass a search term to the script for processing so I can launch it like this:

do %findtxt.r "John Smith"

But I can seem to get to the argument in my script.  If  in my script I try and access system/options/args or system/script/args they both come up as 'none'.

What am I doing wrong?
Logged
Gabriele
Full Member
***
Offline Offline

Posts: 182


View Profile WWW
Passing arguments to script
« Reply #1 on: November 02, 2004, 08:01:13 AM »

do/args %findtxt.r "John Smith"
Logged
Guest
Guest


Email
Passing arguments to script
« Reply #2 on: November 04, 2004, 08:46:14 PM »

Thank you Gabriele.

Stuart
Logged
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Passing arguments to script
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2008, 06:02:43 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2285 Posts in 594 Topics by 3708 Members
Latest Member: cialissactiv

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc