Results 1 to 2 of 2

Thread: Error while trying to Dim

  1. #1
    Guest
    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.

  2. #2
    Guest
    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/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width