OK, Jim ... I'll take the bait. I'm not familiar with VB.NET's syntax since I also am using C#. How would you do this in VB?
~~Bonnie
>Boy, if I needed convincing that VB is a better option, this code does it!! It looks positively gibberishish.
>
>(not criticizing the code, that no doubt is great)
>
>
>>Yes, because everything is an object in c#.
>>In fact, the following code create an array of 2 arrays
>>
>>
>>object[,] multitype = {{4, 5, 6, 1},{ "Claudio","Michel","Carlos","John"}};
>>for (int i=0;i<2;i++)
>>{
>> for (int ii=0;ii<4;ii++)
>> {
>> System.Console.WriteLine(multitype[i,ii]);
>> System.Console.WriteLine(multitype[i,ii].GetType() );
>> }
>>}
>>
>>
>>
>>>Hi, everybody.
>>>
>>>Is it possible to create an multi-dimensional array in C# which contains columns of different type? If so, how?
>>>
>>>For example, in VFP we can do this:
>>>
>>>
>>>local Persons(2,2)
>>>Persons(1,1) = "John Jones"
>>>Persons(1,2) = 24
>>>
>>>Persons(2,1) = "Paul Wink"
>>>Persons(2,2) = 30
>>>
>>>
>>>Is it possible in C#?
>>>
>>>TIA