|
-
Jul 14th, 2000, 01:00 AM
#1
Thread Starter
Addicted Member
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
-
Jul 14th, 2000, 04:33 AM
#2
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|