The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> Micro Focus/Compuware TestPartner

Pages: 1
Matthias_Knebel
Newbie


Reged: 10/23/12
Posts: 1
2 Dimensional Array
      #718724 - 10/25/12 04:40 AM

Hi,

have some trouble to create 2 Dimensional Array directly.

Tried any variations but not catch the solution for my development plan.

i can fill a 1 Dimensional Array like this
Code:

Tab_Array1(1) = "1"
Tab_Array1(2) = "2"
.
.
.



Also i can fill it like this. But only if the variable is a variant. Otherwhise i have trouble to assign the array
Code:

Tab_Array1 = Array("1", "2", "3", "4")



my wish is to fill a Array Variable like this
Code:

Tab_Array = Array(("1", "2", "3", "4"), _
("2", "4", "7", "9"))


I just want to simulate in the code like a table. Later i will overgive function this variable which it would compare automatically the content of the table in a application with the datas in the codes.

Sorry for my bad english. But i hope anyone can understand my plan and give me a hint.

Thx a lot.


Post Extras: Print Post   Remind Me!   Notify Moderator  
eggbox
Advanced Member


Reged: 01/27/02
Posts: 457
Loc: Detroit, Michigan
Re: 2 Dimensional Array [Re: Matthias_Knebel]
      #718818 - 10/26/12 08:52 AM

Not quite what you want but close.

Code:
Dim myArray()
ReDim myArray(5)

myArray(1) = Array("a", "b", "c", "d")
myArray(2) = Array("e", "f", "g", "h")



--------------------
//*eggbox


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 4 anonymous users are browsing this forum.

Moderator:  Myrtle, Jim Brennan, AJ, DSquared 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 1395

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5