Skip to Content
0
Former Member
Dec 05, 2006 at 11:40 AM

populating table with two dimensional array elements

70 Views

Hi,

Please suggest me with the valuable help for the undermentioned problem:

String a[] = { "NewYork", "London" };

String b[] = { "art1", "art2" };

String s1[] = { "32R", "32L" };

String s2[] = { "39R", "40L", "32S", "35R" };

My result should look like this in a tabular form :

Linkage between array’s

When user select "art1" in array b[] then array s1[] gets selected and result is as follows:

Table1

Ship to location 32R 32L

NewYork

London

When user select "art2" in array b[] then array s2[] gets selected and result is as follows:

Table2

Ship to location 39R 40L 32S 35R

NewYork

London

Regards

Mainak