Hi

I'm trying to run a short VBscript script file that popup a window to the
user and the user can press OK or Cancel buttons.

When I run the script (via CScript or WScript) it runs properly but in
Windows Mobile (on HTC Tytn2 device) nothing happens.

Here is an example of the script:

sub testing()

dim answer
answer=MsgBox("Hello everyone!",65,"Example")

end sub

Thanks

Aviad

Re: VBScript and windoes Mobile by Richard

Richard
Mon Jan 28 08:41:21 CST 2008

Aviad wrote:

> I'm trying to run a short VBscript script file that popup a window to the
> user and the user can press OK or Cancel buttons.
>
> When I run the script (via CScript or WScript) it runs properly but in
> Windows Mobile (on HTC Tytn2 device) nothing happens.
>
> Here is an example of the script:
>
> sub testing()
>
> dim answer
> answer=MsgBox("Hello everyone!",65,"Example")
>
> end sub
>

Do you call the Sub Testing? If not, remove the "sub testing()" and "end
sub" statements. There is no need for the main VBScript program to be
inclosed in a method.

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--



Re: VBScript and windoes Mobile by discussions

discussions
Mon Jan 28 08:52:01 CST 2008

Of course I call the function but I did't write it in the sample.


"Richard Mueller [MVP]" wrote:

> Aviad wrote:
>
> > I'm trying to run a short VBscript script file that popup a window to the
> > user and the user can press OK or Cancel buttons.
> >
> > When I run the script (via CScript or WScript) it runs properly but in
> > Windows Mobile (on HTC Tytn2 device) nothing happens.
> >
> > Here is an example of the script:
> >
> > sub testing()
> >
> > dim answer
> > answer=MsgBox("Hello everyone!",65,"Example")
> >
> > end sub
> >
>
> Do you call the Sub Testing? If not, remove the "sub testing()" and "end
> sub" statements. There is no need for the main VBScript program to be
> inclosed in a method.
>
> --
> Richard Mueller
> Microsoft MVP Scripting and ADSI
> Hilltop Lab - http://www.rlmueller.net
> --
>
>
>