fabiomarcos
Member
- Joined
- Oct 21, 2008
- Messages
- 5
- Programming Experience
- Beginner
Hi,
I need to make the value of the public variable bellow accessed by all sub´s... how to do this ?
The return of function show be "Hello Word" after calling mySub1 and mySub2
Thank´s
I need to make the value of the public variable bellow accessed by all sub´s... how to do this ?
VB.NET:
Public class cTest
public myVar as string
public sub mySub1()
myVar = "Hello "
end sub
public sub mySub2()
myVar =+ "World"
end sub
public function mySub3() as string
return myVar
end function
end class
The return of function show be "Hello Word" after calling mySub1 and mySub2
Thank´s