PDA

Click to See Complete Forum and Search --> : Error while trying to Dim


May 22nd, 2000, 12:59 AM
Hi:
This is my first ASP script.
When i dim a variable for eg
Dim cn as ADODB.connection
I get "Expected end of statement"
When using msgbox I get "Permission denied"

Could anyone help?

Also could anyone give the best site to get a tutorial on ASP?
Thanks.

May 22nd, 2000, 02:36 AM
VBScript only supports the variant type(when dimensioning) and does not need or understand the 'As VariableType' syntax. Just drop off the "..as ADODB.Connection" and that part should be ok. MsgBox cannot/should not be implemented on the server, only client side.

best sites:
http://www.15seconds.com/
http://www.asptoday.com/
http://www.asp101.com/
http://www.learnasp.com/