Tableaux dans un tableau de structure
Bonjour à tous
Je cherche à faire un tableau de structure dans laquelle un tableau est présent. Or j'ai quelques soucis : un tableau de structure c'est OK, un tableau dans un structure c'est OK mais les deux ensemble je n'y arrive pas.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| Module Déclaration
Public Structure Infos_Pays
Dim Pays_Limitrophe() As Integer
Public Sub initialize()
ReDim Pays_Limitrophe(20)
End Sub
End Structure
End Module
Module Initialisation
Public Pays(2) As Infos_Pays
Public Sub Chargement_Carte()
Pays.initialize()
Pays(0).Pays_Limitrophe(0) = 10
end sub
End Module |
J'ai un problème au moment d'exécuter la ligne Pays(0).Pays_Limitrophe(0) = 108Je suis avec Visual Studio 2015.
Merci