Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Forward slashes as VBScript comment

Forward slashes as VBScript comment

Scheduled Pinned Locked Moved Web Development
helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Phil Meades
    wrote on last edited by
    #1

    On one or two servers on which I work I've found that two forward slashes (//) work as a comment in VBScript ASP pages whereas on other servers this generates an error and I can only use a single quote or a 'rem'. Does anyone know what set of circumstances makes this use of two forward slashes allowable? Thanks for any clues - Phil Meades

    O 1 Reply Last reply
    0
    • P Phil Meades

      On one or two servers on which I work I've found that two forward slashes (//) work as a comment in VBScript ASP pages whereas on other servers this generates an error and I can only use a single quote or a 'rem'. Does anyone know what set of circumstances makes this use of two forward slashes allowable? Thanks for any clues - Phil Meades

      O Offline
      O Offline
      Om Prakash Pant
      wrote on last edited by
      #2

      Forward slashes can be used as comments in javascript. In VbScript as u said, rem or single quotes will work. Om Prakash

      P 1 Reply Last reply
      0
      • O Om Prakash Pant

        Forward slashes can be used as comments in javascript. In VbScript as u said, rem or single quotes will work. Om Prakash

        P Offline
        P Offline
        Phil Meades
        wrote on last edited by
        #3

        Actually what I said was that on a couple of servers that I've used forward slashes *also* work in VBScript. The spec of my machine is XP Professional, IIS 5.1, asp.dll version 5.1.2600.1106. Also with .Net framework and Visual Studio .Net installed. Here's the code of a sample page that just works fine on my machine but not on some others that I've used: <%@ Language = "VBScript" %> <% //This is a comment 'and so is this.. rem and this Response.Write "Hello there.." %>

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups