From: shadow-monster via DotNetMonster.com on
Good Day,

Just want to know the difference of


Dim p as string

Private p as string


I'm a little confuse :)

Thanks much

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/Forums.aspx/dotnet-vb-net/201003/1

From: Cor Ligthert[MVP] on
If you never use the Dim anymore on global level then you won't be confused.

Dim is an old VB keyword which like the Cobol "picture" in the days that
Basic was created, described more or less the dimension of the used memory
in bytes.

That it is already a long while no more, because you simply don't know that
for a class.

So it is currently a word without its real true meaning, but it is very
liked by the more older basic programmers.

However like you say it confuses.

Dim is in a Class Private on global level while it is in a module Shared.

In a method it is always private to the method.




"shadow-monster via DotNetMonster.com" <u58543(a)uwe> wrote in message
news:a5b6673526b0c(a)uwe...
> Good Day,
>
> Just want to know the difference of
>
>
> Dim p as string
>
> Private p as string
>
>
> I'm a little confuse :)
>
> Thanks much
>
> --
> Message posted via DotNetMonster.com
> http://www.dotnetmonster.com/Uwe/Forums.aspx/dotnet-vb-net/201003/1
>