Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reset variables

Status
Not open for further replies.

leuk31

Programmer
Joined
Mar 3, 2010
Messages
2
Location
FR
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
 
Hi,

Any idea. I need help please.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top