Re: Parsing OpenArgs statements



"ManningFan" <manningfan@xxxxxxxxx> wrote in message
<1175281570.681345.193960@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>:
I'm trying to figure out how to do this, my form may have anywhere
from 1 to 5 arguments passed. My OpenArgs statement looks something
like this:

Arg1 | Arg2 | Arg3 | Arg4 | Arg5

I need to know if there's an easy way to pull everything prior to the
first "pipe" ( | ), and then everything from the first pipe to the
second pipe, then everything from the second pipe to the third pipe,
etc...

Anyone got any suggestions?

Try the Split function - air code;

dim myarr() as string
dim l as long
myarr = split(me.openargs, "|")
debug.print myarr(0)
' loop the resulting array

--
Roy-Vidar


.



Relevant Pages

  • Re: Parsing OpenArgs statements
    ... ManningFan wrote: ... My OpenArgs statement looks something ... I need to know if there's an easy way to pull everything prior to the ... second pipe, then everything from the second pipe to the third pipe, ...
    (comp.databases.ms-access)
  • Parsing OpenArgs statements
    ... My OpenArgs statement looks something ... I need to know if there's an easy way to pull everything prior to the ... second pipe, then everything from the second pipe to the third pipe, ...
    (comp.databases.ms-access)