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

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
 
S

Stephany Young

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.
 
M

Michel Posseth [MCP]

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
 
C

Cor Ligthert[MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top