Postato originariamente da Ultimo:
Codice sorgente - presumibilmente VB.NET |
Friend Function Altre_Penalità As Integer Dim SommaPen As Integer = 0 If ChBoxPenPartAnt.Checked = True Then SommaPen = PenalitàPartAnt If ChBoxPenJmpTrack.Checked = True Then SommaPen += PenalitàJmpTrack If ChBoxPenBirillone.Checked = True Then SommaPen += PenalitàBirillone If ChBoxPenMedia.Checked = True Then SommaPen += PenalitàMedia return SommaPen end Function
|
|
Domanda... perché Friend? All'interno del programma ho fatto altre funzioni, che eseguono dei calcoli (Vedi la Controlla_Tempo e Converti_Tempo), che funzionano benissimo a cui però non ho aggiunto ne Public, ne Private ne Friend... è perché lavora sui CheckBox che bisogna aggiungerlo?