Presentation on theme: "Introduction to VBscript School of engineering 20051022 Kim sung hwan."— Presentation transcript:
Introduction to VBscript School of engineering 20051022 Kim sung hwan
What is script ? It is subset of programming language to purpose on included in the web. To execute this program dont need to compile and interpreted by web browser. It is easy to use. Execution time is slow. Relatively, structure is simple
The reason why we use script ? Make the web interact with user for example Situation : when plan for airport ticket Possible application 1. request ticket via the web 2. check the necessary form is correct 3. inform expectation fee from company and decide my choice on the web
VBscript It is a scaled down version of Visual Basic. It is an abbreviated name of Visual Basic Scripting Edition. The grammar is same with Visual Basic. - you haven't worked in another version of Visual Basic. VBscript is easy to learn, even for the novice developer.
Why Visual Basic is useful C source Visual Basic source It is easy to perceive Event-oriented language Even you are novice in programming, it can be used efficiently
Tag To purpose on adding script in the HTML example, (prosizer for date control) 2 End Function -->
Similar with other language variables constant operation conditional statement Loop statement MSND for novice user
Simple program 10 Then MsgBox input one number.(1~10)" Else MsgBox thank" TheForm.Submit End If Else MsgBox input other number" End If End Sub -->
VBscript prosizer Sub prosizer doesnt use return value Sub ConvertTemp() temp = InputBox(input degrees of temperature.", 1) MsgBox Celsius " & Celsius(temp) & degree." End Sub Function prosizer use return value Function Celsius(fDegrees) Celsius = (fDegrees - 32) * 5 / 9 End Function
Examples program Working With VBScript: Exercise 1 Your First VBScript Exercise By utilizing VBScript you can give your Web pages actions. Click on the button below to see what we mean.