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" <(E-Mail Removed)> wrote in message
news:763a01c4ce1b$e497a9c0$(E-Mail Removed)...
> 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
|