Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multi-dimensional arrays
Message
De
21/07/2002 23:38:57
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00680991
Message ID:
00680997
Vues:
19
This message has been marked as the solution to the initial question of the thread.
>In C# we can do a Multi-dimensional arrays like this.
>
>"The code is from Gérald Santerre Thread #678465 Message #678473"
>
>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() );
>	}
>}
>
>
>How do we do this in VB.Net?

Pasting the code into Kamal's translater (http://www.kamalpatel.net/ConvertCSharp2VB.aspx) yields
Dim multitype(,) As Object = {{4, 5, 6, 1}
,
{
	 "Claudio","Michel","Carlos","John"
}

}

Dim i As Integer
For  i = 0 To 2- 1  Step i + 1
	Dim ii As Integer
	For  ii = 0 To 4- 1  Step ii + 1
		System.Console.WriteLine(multitype(i,ii))
		System.Console.WriteLine(multitype(i,ii).GetType())
	Next
Next

'----------------------------------------------------------------
' C# Code converted to VB.Net using CSharpToVBConverter(1.1).
' Developed by: Kamal Patel (http://www.KamalPatel.net) 
'----------------------------------------------------------------
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform