Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ASP Best Practices

Next Topic

Blocked Comments in VBScript

If a single comment spans multiple lines, each line must begin with the standard VBScript comment symbol ('). Large, multistatement comment blocks should be formatted as in the example below.


Sub ShowIt()
  'This procedure is called when the    
  'user selects a language.           
  'It displays an appropriate select 
  'item based on their language choice.
  'The method choices are each contained 
  'in a separate div.
  Dim vntCurrLang 
  vntCurrLang = document.all.langselect.value
  Select Case vntCurrLang
  Case "C" 
    document.all.cdiv.style.display = "" 
  Case "VB" 
    document.all.vbdiv.style.display = "" 
  Case "J" 
    document.all.javadiv.style.display = ""
  End Select
End Sub
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft