ThePentiumGuy
Senior Contributor
i have a class called add with a function called number
publc function number(byval mynumber as integr)
mynumber +=1
end function
in my main program(globals):
dim add as new add
dim x as integer = 3
(button1.click)
add.number(x)
Messagebox.sjow(x)
but its always 3? how come?
publc function number(byval mynumber as integr)
mynumber +=1
end function
in my main program(globals):
dim add as new add
dim x as integer = 3
(button1.click)
add.number(x)
Messagebox.sjow(x)
but its always 3? how come?