From: Tony Bansten on
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

From: Stephany Young on
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.


"Tony Bansten" <tonytony(a)hotmail.com> wrote in message
news:48653284$0$6553$9b4e6d93(a)newsspool3.arcor-online.net...
> 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
>

From: Michel Posseth [MCP] on
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

"Stephany Young" <noone(a)localhost> schreef in bericht
news:OgS%23qmK2IHA.4668(a)TK2MSFTNGP02.phx.gbl...
> 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.
>
>
> "Tony Bansten" <tonytony(a)hotmail.com> wrote in message
> news:48653284$0$6553$9b4e6d93(a)newsspool3.arcor-online.net...
>> 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
>>
>


From: Cor Ligthert[MVP] on
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

"Michel Posseth [MCP]" <MSDN(a)posseth.com> schreef in bericht
news:%23tNG84O2IHA.4672(a)TK2MSFTNGP04.phx.gbl...
>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
>
> "Stephany Young" <noone(a)localhost> schreef in bericht
> news:OgS%23qmK2IHA.4668(a)TK2MSFTNGP02.phx.gbl...
>> 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.
>>
>>
>> "Tony Bansten" <tonytony(a)hotmail.com> wrote in message
>> news:48653284$0$6553$9b4e6d93(a)newsspool3.arcor-online.net...
>>> 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
>>>
>>
>
>