Thread: ASP question

  1. #1
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052

    ASP question

    This is an ASP programming question. I just started it.

    Here's my problem...whenever I declare a variable like this
    Code:
    Dim variable = "hello"
    it throws this back at me
    Code:
    Microsoft VBScript compilation error '800a0401' 
    
    Expected end of statement 
    
    /chrisdevelop/spam.asp, line 34 
    
    Dim count = 0
    ----------^
    Can anybody help?

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Code:
    Dim variable
    
    variable = "hello"
    Yeah VBScript seems happier if you declare and assign seperately

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  2. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  3. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 09:22 PM
  4. sending email from (C++)exe file through ASP
    By priya in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2002, 10:14 AM
  5. New Tnet page - supports ASP !!!!
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 10-26-2001, 08:23 AM