
























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Visual Basic 6.0 Introduction
Typology: Slides
1 / 32
This page cannot be seen from the preview
Don't miss anything!
Programming is writing instructions for a computer. Level of programming languages (^) Machine language – 0s and 1s (^) Intermediate languatge – assambly language. (^) High level language – BASIC, C++…
Basic --- B eginners' A ll-purpose S ymbolic I nstruction C ode (May,
MS-BASIC 2.0 (July, 1975) Visual Basic 1.0 (May,1991) Visual Basic 6.0 (July 1998)
It shares the same principles with other programming languages. It is good when developing small and handy utility programs. It is supported by Microsoft. It is powerful when integrated with Excel and Word.
Identify what needs to be solved (^) Make diagrams, and equations, etc Design: Analyze the problem and develop an ALGORITHM and FLOWCHART
Creating “Source Code” (^) Source Code is the instructions for the computer written in Visual Basic programming language (^) In VB, source code is linked to an object on the form (^) Designing user interface is also part of the coding.
Interpreting reads and runs one line of code each time. You can find “Grammar errors” in this stage. Advantage: Good for debugging (^) Interpreter is easy to program. Disadvantage: (^) Slow
Try to run the program by pressing the start button If it starts running, enter the answers and/or click the buttons to test it Test your program with boundary and special cases.
VB is a programming language that allows you to program in a Windows environment You create a “Form” with several “Objects” You set the properties of objects. You write event handler to response to user’s input.
Form contains the Main Program Controls are user interface elements (text boxes, commands) in the Form Forms and Controls are referred to as OBJECTS Objects have PROPERTIES (features you can change)
You create a form that is your graphical user interface Has places to input values Has buttons to click Has other user interface elements, e.g. Menu, scroll bar…
Properties (^) Height, weight, color, emotion (friendly, hostile) … (^) Methods (^) Barking, biting, wagging, singing… (^) Event handlers (^) Owner coming in: call wagging, call singing, emotion=friendly; (^) Intruder coming in: call barking, call biting, emotion=hostile.
Text Boxes – area where you enter text Command Buttons – you click on them to do something Picture Boxes – Output your results.