Visual Basic.NET - Como hacer array de structura

 
Vista:

Como hacer array de structura

Publicado por Sarai (35 intervenciones) el 14/03/2006 12:03:50
Hola haber si pueden ayudarme. Como hago un array de estructura. Tengo lo siguiente. La ultima linea es correcta? O como seria? Y luego como lo relleno?? hay que darle memoria ... No se... Gracias!

Structure Linea
Public Codigo As String
Public Nombre As String
Public Capital As Integer
Public Admon As Integer
Public Provincia As Integer
Public Total As Integer
Public Acumulado As Integer
Public Sub New(ByVal a As String, ByVal b As String, ByVal c As Integer, ByVal d As Integer, ByVal e As Integer, ByVal f As Integer, ByVal g As Integer)
Codigo = a
Nombre = b
Capital = c
Admon = d
Provincia = e
Total = f
Acumulado = g
End Sub
End Structure

Private Resumen() As Linea
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder