Page 1 of 1
Simple Variable Array - Solved
Posted: Fri Aug 23, 2013 12:44 pm
by DR White
I need to create 2 simple Variable arrays like:
"Names" and "Gender"
I am accustomed to using a variable array such as
Name (x)
Gender (x)
PLEASE Help!
Thanks,
Re: Simple Variable Array
Posted: Fri Aug 23, 2013 12:54 pm
by Klaus
Hi DR White,
1. welcome to the forum!
2. not sure what you mean?
Maybe this one:
...
put "Klaus" into Name[1]
put "male (mostly)" into Gender[1]
...
Now you have the name in the FIRST key of the array Name and my gender in the first key of the array Gender.
Is that what you mean?
Best
Klaus
P.S.
Will move this posting, since this is not a FEATURE REQUEST!

Re: Simple Variable Array
Posted: Fri Aug 23, 2013 2:16 pm
by dunbarx
Hi.
Hmmm.
Or maybe you mean this:
put "Klaus" into expert[firstName]
put "wavering" into expert{joking]
put "silly" into expert[dunbarPost]
So now you have a single array named "expert", with three keys "firstName", "joking" and "dunbarPost", and with the data associated with those keys.
A little practice and you should be fine.
Craig Newman
Re: Simple Variable Array
Posted: Fri Aug 23, 2013 2:25 pm
by Klaus
Or better:
...
put "Klaus" into expert["firstName"]
put "wavering" into expert{"joking"]
put "silly" into expert["dunbarPost"]
...

Re: Simple Variable Array
Posted: Fri Aug 23, 2013 2:39 pm
by DR White
Hi DR White,
1. welcome to the forum!
2. not sure what you mean?
Maybe this one:
...
put "Klaus" into Name[1]
put "male (mostly)" into Gender[1]
...
Now you have the name in the FIRST key of the array Name and my gender in the first key of the array Gender.
Is that what you mean?
Best
Klaus
P.S.
Will move this posting, since this is not a FEATURE REQUEST!

[/quote]

That worked Perfectly
Re: Simple Variable Array
Posted: Fri Aug 23, 2013 2:43 pm
by DR White
dunbarx wrote:Hi.
Hmmm.
Or maybe you mean this:
put "Klaus" into expert[firstName]
put "wavering" into expert{joking]
put "silly" into expert[dunbarPost]
So now you have a single array named "expert", with three keys "firstName", "joking" and "dunbarPost", and with the data associated with those keys.
A little practice and you should be fine.
Craig Newman

Thank You for your Help!