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
Printable View
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
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
-->