Hello All,

Hope someone can help with this, below I have pasted the script that I am
using:

<OBJECT language="vbscript" ID="MsRdpClient"
CLASSID="CLSID:9059f30f-4eb1-4bd2-9fdc-36f43a218f4a"
CODEBASE="msrdp.cab#version=5,1,2600,1095"
WIDTH=<% resWidth = Request.QueryString("rW")
if resWidth < 200 or resWidth VIEWASTEXT VIEWASTEXT VIEWASTEXT>
1600 then
resWidth = 1024
end if
Response.Write resWidth %>
HEIGHT=<% resHeight = Request.QueryString("rH")
if resHeight < 200 or resHeight > 1200 then
resHeight = 768
end if
Response.Write resHeight %>>
</OBJECT>

When launching this asp I receive the following error:

Microsoft VBScript compilation error '800a03f9'

Expected 'Then'

/TSAC_XP.asp, line 46

if resWidth < 200 or resWidth VIEWASTEXT VIEWASTEXT> 1600 then

Looking forward to a response.

Thanks

Re: Script Error *Help Please* by Tim

Tim
Wed Nov 08 01:33:05 CST 2006

What is that "VIEWASTEXT" stuff?
If it's not a posting artifact then you need to get rid of it.

if resWidth < 200 or resWidth > 1600 then


Tim


"George G. Ioannides" <GeorgeGIoannides@discussions.microsoft.com> wrote in
message news:FBC6F455-7926-45E1-8A70-5B04F2212116@microsoft.com...
> Hello All,
>
> Hope someone can help with this, below I have pasted the script that I am
> using:
>
> <OBJECT language="vbscript" ID="MsRdpClient"
> CLASSID="CLSID:9059f30f-4eb1-4bd2-9fdc-36f43a218f4a"
> CODEBASE="msrdp.cab#version=5,1,2600,1095"
> WIDTH=<% resWidth = Request.QueryString("rW")
> if resWidth < 200 or resWidth VIEWASTEXT VIEWASTEXT
> VIEWASTEXT>
> 1600 then
> resWidth = 1024
> end if
> Response.Write resWidth %>
> HEIGHT=<% resHeight = Request.QueryString("rH")
> if resHeight < 200 or resHeight > 1200 then
> resHeight = 768
> end if
> Response.Write resHeight %>>
> </OBJECT>
>
> When launching this asp I receive the following error:
>
> Microsoft VBScript compilation error '800a03f9'
>
> Expected 'Then'
>
> /TSAC_XP.asp, line 46
>
> if resWidth < 200 or resWidth VIEWASTEXT VIEWASTEXT> 1600 then
>
> Looking forward to a response.
>
> Thanks
>
>



Re: Script Error *Help Please* by GeorgeGIoannides

GeorgeGIoannides
Wed Nov 08 19:00:02 CST 2006

Thank you Tim, I removed VIEWASTEXT and it worked fine.

"Tim Williams" wrote:

> What is that "VIEWASTEXT" stuff?
> If it's not a posting artifact then you need to get rid of it.
>
> if resWidth < 200 or resWidth > 1600 then
>
>
> Tim
>
>
> "George G. Ioannides" <GeorgeGIoannides@discussions.microsoft.com> wrote in
> message news:FBC6F455-7926-45E1-8A70-5B04F2212116@microsoft.com...
> > Hello All,
> >
> > Hope someone can help with this, below I have pasted the script that I am
> > using:
> >
> > <OBJECT language="vbscript" ID="MsRdpClient"
> > CLASSID="CLSID:9059f30f-4eb1-4bd2-9fdc-36f43a218f4a"
> > CODEBASE="msrdp.cab#version=5,1,2600,1095"
> > WIDTH=<% resWidth = Request.QueryString("rW")
> > if resWidth < 200 or resWidth VIEWASTEXT VIEWASTEXT
> > VIEWASTEXT>
> > 1600 then
> > resWidth = 1024
> > end if
> > Response.Write resWidth %>
> > HEIGHT=<% resHeight = Request.QueryString("rH")
> > if resHeight < 200 or resHeight > 1200 then
> > resHeight = 768
> > end if
> > Response.Write resHeight %>>
> > </OBJECT>
> >
> > When launching this asp I receive the following error:
> >
> > Microsoft VBScript compilation error '800a03f9'
> >
> > Expected 'Then'
> >
> > /TSAC_XP.asp, line 46
> >
> > if resWidth < 200 or resWidth VIEWASTEXT VIEWASTEXT> 1600 then
> >
> > Looking forward to a response.
> >
> > Thanks
> >
> >
>
>
>