Hi,
I've this code :
Public Shared MyVar AS Integer=0, MyVar2 AS Integer=0
Public Shared FUNCTION SetMyvar(ByVal valeur AS Integer) AS Integer
IF valeur < 48 Then
MyVar +=1
Else
MyVar=MyVar
End IF
RETURN MyVar
End FUNCTION
Public Shared FUNCTION SetMyvar2(ByVal valeur2 AS Integer) AS Integer
IF valeur2 < 24 Then
MyVar2 +=1
Else
MyVar2=MyVar2
End IF
RETURN MyVar2
End FUNCTION
I would like to reset them when the a parameter change.
Where or how i can do this?
Thanks
I've this code :
Public Shared MyVar AS Integer=0, MyVar2 AS Integer=0
Public Shared FUNCTION SetMyvar(ByVal valeur AS Integer) AS Integer
IF valeur < 48 Then
MyVar +=1
Else
MyVar=MyVar
End IF
RETURN MyVar
End FUNCTION
Public Shared FUNCTION SetMyvar2(ByVal valeur2 AS Integer) AS Integer
IF valeur2 < 24 Then
MyVar2 +=1
Else
MyVar2=MyVar2
End IF
RETURN MyVar2
End FUNCTION
I would like to reset them when the a parameter change.
Where or how i can do this?
Thanks