When do I have do define variables with "DIM" ?

  • Thread starter Thread starter Tony Bansten
  • Start date Start date
T

Tony Bansten

Occasionally I saw VBS script where local variables were declared on top
with a statement like

DIM myvar

However most of my own vbs script run without such declaration.
When do I need them and when not?

Tony
 
Tony, VB.NET and VBS are two completely different animals.

Please do NOT post, (or crosspost), matters relating to VBS to
microsoft.public.dotnet.languages.vb.
 
I have answered this one yesterday in "microsoft.public.scripting.vbscript"
although the question and answer could have been the same for VBA, VB6 ,
VB.Net ( explicit VS implicit declaration )

See every VB like language as a human from a different family maybe one
language is less evolved but they are sure not another species


regards

Michel Posseth
 
Michel,

I don't like this guy, it is not a Comunity person, he only wants to consume
answers, drops in all kind of newsgroups post and set his follow up to one
newsgroup, so we cannot see what the other answers were. Because this is as
well used by somebody using a woman name, and it started at the same time, I
think that it is the same poster.

I have tried this a while with the name Corrina, but that was not serious
(Herfried knows this)

But it seems that Stephany likes this kind of behaviour.

:-)

Cor
 
Back
Top