Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

single to multi-dimensionnal array 1

Status
Not open for further replies.

mmaz

Programmer
Nov 22, 2000
347
Hi,

I have a one-dimension array, and I want to associate every value in my array with a letter "Y" or "N". How can I add these Y/N values to the array?

Thanks,

Marie
 
You have a couple options that come to mind right away...

if the values of your array are unique, you can turn the values into keys and the values in "Y" or "N"

if they're not unique, you can just run a concurrent array which shares the same key system.

or you could store them in the same array by making each "value" a record... then you'd have something like

array[1]["value"] =
and
array[1]["attr"] =

-Rob
 
Thanks for your quick reply, skiflyer.

I'll go with the 3rd option.

Marie :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top