943,198 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Marked Solved
  • Views: 317
  • ASP RSS
Jul 10th, 2010
0

Simple associative array

Expand Post »
Hi folks,
Im basically a php programmer. So im very new to asp and vbscript. I had a project to create something in php and asp. I was able to get it done in php but im struggling with asp.

I need to create a array to send to an API.

In php the array is like this.
ASP Syntax (Toggle Plain Text)
  1. Array
  2. (
  3. [auth] => Array
  4. (
  5. [key] => jf93j
  6. [user] => 169
  7. [password] => lxter4
  8. )
  9.  
  10. [module] => Array
  11. (
  12. [module] => account
  13. [command] => getAccountDetails
  14. )
  15.  
  16. [data] => Array
  17. (
  18. )
  19.  
  20. )

How can I create this in vbscript.

Ive been checking out scripting.dictionary. But still not getting the hang of it.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
blessan is offline Offline
8 posts
since May 2010
Jul 10th, 2010
0
Re: Simple associative array
Well I got it my self using Scripting dictionary
Reputation Points: 10
Solved Threads: 0
Newbie Poster
blessan is offline Offline
8 posts
since May 2010
Jul 12th, 2010
0
Re: Simple associative array
Nice of you to post the solution.
Reputation Points: 5
Solved Threads: 14
Junior Poster
ArtistScope is offline Offline
146 posts
since Jun 2010

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: How to Parse XML in ASP?
Next Thread in ASP Forum Timeline: Script error in asp





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC