IT SOLUTIONS
Your TECHNOLOGY partner! 
   ► MB LobbyCoding & OO BoardCoding Techniques Topic     Print This   

New Reply Post

Write a Comment...
Reply Subject:
Icon: A Post    Thread    Idea    Important!    Cool    Smiles    Happy as Heck   
Frustrated    Sad    My Bad!    Wink    No    Yes    Includes a Link...   
Comment:
[View Thread/Profile]
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post:

Enter your name and security key.

Your Name:
Today's security key = P257A
Enter key:

Replying to...

mprestwood

An associative array links one set of unique values with another set of values (not necessarily unique). Think of an associative array as a two column table. An array is just a set of values. Think of a regular array as a single column table. I also know associative arrays as "dynamic arrays" in ObjectPAL, a "lookup" table in DBA terms, and dictionaries or HashTables in C#. You didn't say which language you wanted an example in so here's an example in C#:

Hashtable MyHTable = New HashTable();


MyHTable.Add("Milpitas", 95035);
MyHTable.Add("Citrus Heights", 95610);
-
  Load Time=less than 1 second.
 
Print This
-
 
Have a question? Need our services? Contact us now.
--Mike Prestwood

Call: 916-726-5675

email: info@prestwood.com


©1995-2013 Prestwood IT Solutions.   [Security & Privacy]   Made in the U.S.A..   No H1-B.   No offshoring.