[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: Programming Ques - Passing arguments with RUN
- Subject: Re: Programming Ques - Passing arguments with RUN
- From: marc@xxxxxxxx
- Date: Thu, 08 Jan 2004 17:55:15 +1300 (NZDT)
G'day Russ
What you are looking for is the XS (eXtract String) function (available Version
3.54 and later)
you type ...run index.pm vpPathway;vpText
in your program you access 00 using XS function as follows...
xs#1,#2,#3,#4,#5
where
#1 = number of Save/Get containing the field to search (ie 00)
#2 = number of Save/Get containing seperator (ie ;)
#3 = number of S/G you want to save the PRECEDING info in the SG00
#4 = number of S/G you want to store the matched string (will equal #2 unless
wildcards were used)
#5 = number of S/G used to store what follows seperator.
your pgm has for eg,
≪SV20,;≫SV30,≫:
> Hi,
>
> I had a question for the xpl programmers. I currently run a program
> like the following:
>
> run index.pm vpPathway
>
> and then know that macro 00 has vpPathway in it. Is there another easy
> way to pass another argument value this way. i.e. if i typed
>
> run index.pm vpPathway vpText
>
> does vpText get stored in any macro automatically? I tried entering
> this at the commandline but 00 still only gets vpPathway.
>
> Thanks for all your help!
>
>
> Russ
>
>