09-10-2010 12:45 PM - edited 03-14-2019 06:28 AM
Hello,
I'm trying to build a new String Array as a parameter but I can't seem to the syntax right to get it started with the specific values I need. I've tried the following:
Has anyone ever done this?
Thanks!
Solved! Go to Solution.
09-10-2010 12:59 PM
I don't think thats going to work, but who cares. Try not to think
about the problem so linearly, for example instead of doing what your
doing try the following
String foo (as parameter)
String bar[]
bar = foo.split(",") // the comma is the separator
That's all you need. Pick a reasonable separator and put the values
into your foo string as a parameter
so if you put "var1,var2,var3" as foo via paramter
bar[0] becomes "var1", bar[1] becomes "var2", etc.
On Fri, Sep 10, 2010 at 3:45 PM, ecornwell
09-10-2010 12:59 PM
I don't think thats going to work, but who cares. Try not to think
about the problem so linearly, for example instead of doing what your
doing try the following
String foo (as parameter)
String bar[]
bar = foo.split(",") // the comma is the separator
That's all you need. Pick a reasonable separator and put the values
into your foo string as a parameter
so if you put "var1,var2,var3" as foo via paramter
bar[0] becomes "var1", bar[1] becomes "var2", etc.
On Fri, Sep 10, 2010 at 3:45 PM, ecornwell
09-10-2010 01:01 PM
That'll do exactly what I need!
Thanks!
*That's why I was never a developer!
09-10-2010 01:17 PM
Trust me, I never wanted to be a developer either I just got suckered
back into it
Cheers
On Fri, Sep 10, 2010 at 4:02 PM, ecornwell
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: