Procedures can not define Public variables only Private (aka Dim) and Shared
variables. If you want all procedures in your Module or Class to have
access to a variable then delare it at the Module or Class level
respectively. If delcared Private all your procedures will be able to
access the variable but prodecures outside the Module or Class will not be
able to access it directly.
--Ride
"Mamatha" <ma***********@yahoo.com> wrote in message
news:76****************************@phx.gbl...
Hi
If any one knows,please tell me how can we declare a
public variable in methods of VB.NET like
public indx as integer.
How can i use that variable in another methods like global
variable.
Mamatha