Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


RE: multidimensional arrays

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,29768
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> RE: multidimensional arrays
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: <<   < prev  1 [2]
Login
Message << Older Topic   Newer Topic >>
 RE: multidimensional arrays - 1/13/2006 6:07:56 AM   
  ehvbs

 

Posts: 2061
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
Hi kirrilian,

did you consider using a (disconnected) ADO recordset?

where does your data come from (text file, database, ..)?

(in reply to kirrilian)
 
 
Post #: 21
 
 RE: multidimensional arrays - 1/13/2006 6:15:42 AM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
i just found an article about this, and my coworker suggested using a recordset as well
i was using it to store the output from a billing script that gathers it from all over, AD, SQL and OS level stuff

in keeping with the KISS principle i will switch to the dictionary, but i might need these others at some point

article:
http://www.microsoft.com/technet/scriptcenter/guide/sas_vbs_deti.mspx

_____________________________

Have you searched here ?
VBScript Fundamentals
My Site

(in reply to ehvbs)
 
 
Post #: 22
 
 RE: multidimensional arrays - 1/13/2006 6:22:18 AM   
  ehvbs

 

Posts: 2061
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
hi kirrilian,

I see. Thanks.

(in reply to ehvbs)
 
 
Post #: 23
 
 RE: multidimensional arrays - 1/13/2006 7:10:36 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Disconnected recordsets are great. Especially for structured data in a text file.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to ehvbs)
 
 
Post #: 24
 
 RE: multidimensional arrays - 1/19/2006 4:11:07 AM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
found some more info on multidimensional arrays,

quote:


In a two-dimensional array, the first number is always the number of rows; the second number is the number of columns.


So I was incrementing the columns rather than the rows, how backwards...

reference:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/1dad870e-aefe-40cc-8032-0662ea164885.asp

_____________________________

Have you searched here ?
VBScript Fundamentals
My Site

(in reply to ebgreen)
 
 
Post #: 25
 
 RE: multidimensional arrays - 1/19/2006 5:49:50 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Regardless of what MS says, imo which dimension you consider to be the rows and which the columns is purely semantics. Either way it is a 2-d table.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to kirrilian)
 
 
Post #: 26
 
 RE: multidimensional arrays - 1/20/2006 4:08:16 AM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
agreed

_____________________________

Have you searched here ?
VBScript Fundamentals
My Site

(in reply to ebgreen)
 
 
Post #: 27
 
 
Page:  <<   < prev  1 [2]
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> RE: multidimensional arrays Page: <<   < prev  1 [2]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts