D
Dadi
Hi,
I can make a simple initialization work like this:
Object[,] ONE_ROW = {{"Vodafone", "5550160100197016"}};
But, now I want to create another array that consists of multiple copies of ONE_ROW like this (will not compile):
Object[,] TWO_ROWS = {ONE_ROW, ONE_ROW}; // Works in Java ;-)
This yields "Incorrectly structured array initializer"!!
This, however, is a correct implementation using hard-coded data:
Object[,] TWO_ROWS = {{"Vodafone", "5550160100197016"}, {"Vodafone", "5550160100197016"}};
Any ideas?
Regards,
Dadi.
I can make a simple initialization work like this:
Object[,] ONE_ROW = {{"Vodafone", "5550160100197016"}};
But, now I want to create another array that consists of multiple copies of ONE_ROW like this (will not compile):
Object[,] TWO_ROWS = {ONE_ROW, ONE_ROW}; // Works in Java ;-)
This yields "Incorrectly structured array initializer"!!
This, however, is a correct implementation using hard-coded data:
Object[,] TWO_ROWS = {{"Vodafone", "5550160100197016"}, {"Vodafone", "5550160100197016"}};
Any ideas?
Regards,
Dadi.