Welcome to WebmasterWorld Guest from 3.93.75.30

Forum Moderators: ocean10000

Message Too Old, No Replies

associative array

     
6:36 am on Feb 28, 2009 (gmt 0)

Junior Member

10+ Year Member

joined:Apr 22, 2005
posts:185
votes: 0


Hi, I came from PHP world.

I need parse an associative array (not numeric) in ASP. In PHP is:

foreach ($array as $var => $val)
{
// $var is the index (is not numeric)
// ex: $var = 'name'; $val = 'John Doe'
}

I know that is something like this:

For i=0 to UBound(array)
response.write array(i)
Next

But this is not for associative array, right?

Please can you guide me!

Thanks.-

[edited by: NomikOS at 6:38 am (utc) on Feb. 28, 2009]

7:36 pm on Mar 1, 2009 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 19, 2006
posts:92
votes: 0


The closest thing to an assoc array in VB is a hashtable.
4:45 pm on Mar 10, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 29, 2002
posts:981
votes: 1


Or in ASP use the DictionaryObject [w3schools.com]
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members