Structure turma
Public id_turma As Integer
Public nome_turma As String
End Structure
Structure Disciplina
Public id_disciplinas As Integer
Public nome_disciplina As Integer
End Structure
Public Class F_Contentor
Dim turmas As New List(Of turma)
Dim Disciplinas As New List(Of Disciplina)
Public Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
turmas.id_turma.add(1)
End Sub
I have this code. And from this error:
Error 1 'id_turma' is not a member of 'System.Collections.Generic.List (Of Work_mod_16.turma)'. C: \ Users \ AlunoP \ Desktop \ Work modulo 16 \ Work mod 16 \ Work mod 16 \ F_Contentor.vb 50 9 Work mod 16
What is the correct way to add an item to a list using a structure?