Results 1 to 2 of 2

Thread: ????(0_0)???? Towards VBScript....

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    240
    How do i go about using vbscript????
    I Have vb 6 pro but i dont have a clue as to how i use vbscript??

    can someone fill me in?










    NewBee Vbeer6.0()
    vbpro6sp3&4
    End Sub

  2. #2
    Addicted Member
    Join Date
    Jul 2000
    Location
    Scotland
    Posts
    184
    vbscript is an interpreted language (rather than a compiled on as is the case with VB-x). It can be run on the client ie, in a browser, or on the server. The language element is very similar to that used in VB6, but limited in many ways.

    There are requirements regarding headers in the HTML page, see example.

    I suggest you get a simple book on ASP or VBScript.

    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=iso-8859-1">
    <meta name="robots" content="noindex">
    <meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
    <title>Simple Validation</title>
    </head>

    <body>
    <script language="VBScript">
    <!--
    Sub Submit_OnClick
    Dim TheForm
    Set TheForm = Document.ValidForm
    If IsNumeric(TheForm.Text1.Value) Then
    If TheForm.Text1.Value < 1 Or TheForm.Text1.Value > 10 Then
    MsgBox "Please enter a number between 1 and 10."
    Else
    MsgBox "Thank you."
    End If
    Else
    MsgBox "Please enter a numeric value."
    End If
    End Sub
    -->

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