Home All Groups Group Topic Archive Search About

help about initialize

Author
29 Mar 2010 3:02 AM
shadow-monster via DotNetMonster.com
Good Day,

Just want to know the difference of


Dim p as string

Private p as string


I'm a little confuse :)

Thanks much


Author
29 Mar 2010 7:15 AM
Cor Ligthert[MVP]
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@uwe> wrote in message
news:a5b6673526b0c@uwe...
Show quoteHide quote
> 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
>