ASP question

This is a discussion on ASP question within the A Brief History of Cprogramming.com forums, part of the Community Boards category; This is an ASP programming question. I just started it. Here's my problem...whenever I declare a variable like this Code: ...

  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,789
    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, 01:52 PM
  2. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 10: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, 09:23 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21