Bonjour à tous,
Je bloque sur un truc tout bête :oops: : comment initialiser une structure avec des valeurs par défaut ?
Par analogie avec un tableau d'entier j'écrirai ceci :
Merci d'avance ! :)Code:
1
2
3
4
5
6
7 Public structure SConfig Public Champ1 As Integer Public Champ2 As String End Structure Private _monTab() As Integer = {4, 5, 6} Private _maStruct As SConfig = ????