Ide of Visual Basic 6

March 21, 2018 | Author: Zubair Saeed | Category: Source Code, Compiler, Integrated Development Environment, Computer Program, Computer Programming


Comments



Description

DR A.Q KHAN INSTITUTE OF COMPUTER SCIENCES AND INFORMATION TECHNOLOGY (KICSIT) Name Kashif Ullah Khan Semester BEIT-IV (A) Assignment Database Presented To MR. Altaf Hussain Date of submission 13-march-2009 form. We browse and set a control. Finally. An IDE normally consists of a: 1) Menu bar 2) Edit Toolbar 3) Forms 4) Controls and Tool Box 5) Properties window 6) Form Layout window 7) Project Explorer window 8) Code window 9) Source code editor 10) Compiler or interpreter 11) Build automation tools 12) Debugger . Forms--the basic building blocks of Visual Basic programs--are presented in a Form window.0 An integrated development environment (IDE) also known as integrated design environment or integrated debugging environment is a software application that provides comprehensive facilities to computer programmers for software development. The toolbar enables us to access much of the menu bar's functionality through various toolbar buttons. The Project Explorer displays the projects on which we are working. The Visual Basic IDE is a collection of menus. and windows that make up our programming workbench. we position and view a form or forms onscreen within the Form Layout window. Each part of the IDE has features that affect different aspects of our programming activity. and module's properties within the Properties window. The menu bar lets us direct the overall activity and management of our programming. as well as the different parts of each of those projects. toolbars.IDE OF VISUAL BASIC 6. We use the Tool Box to add controls to the forms of your project. The Complete Word feature is very useful for avoiding syntax errors due to misspelling. and replacement. Also this helps you save time when you have to code long event-driven programs. An interesting VB IDE feature that the Edit toolbar uses is the Complete Word feature. these controls reside within Visual Basic itself. compile and execute our application. Form is the base for creating a user interface. not all. you can use automatic coding features such as Quick Info. Remember. Ocx controls provide the much talked-about flexibility to the VB language. Others live outside Visual Basic and reside in files that end with the extension . CONTROLS AND TOOLBOX Controls are the building blocks with which you assemble your Visual Basic program. Also. This feature automatically completes a keyword for you. Some controls are built into Visual Basic and can't be removed from the ToolBox. FORMS Forms are the most important object in Visual Basic. searches. These controls are known as intrinsic controls. PROPERTIES WINDOW . Ocx. The Tool Box is a palette of controls.MENU BAR Menu bar usually contains Visual Basic commands that are used to create. You can Cut and Paste text. Ocx can be considered as the #include files in the C/C++. These controls can be added and removed from the ToolBox. User can write his own Ocx controls and provide more functionality. You can manipulate the layout of your code and do text selection. Each form is a window in our application. EDIT TOOLBAR The features of the Edit toolbar are similar to those of the Edit menu. and you build your user interface by selecting controls from the Tool Box and placing them on your forms. Our application may have more than one form. All Controls are placed on the form. It is the main object of our application. only the intrinsic VB statements get auto-completed. Two views are available i) ii) ALPHABETIC VIEW CATEGORIZED VIEW FORM LAYOUT WINDOW It shows the position of our form on our monitor.Properties are the attributes of an object such as its size. we can display it by clicking form layout window from view menu. SOURCE CODE EDITOR A source code editor is a text editor program designed specifically for editing source code of computer programs by programmers. We can also view the Form or Code windows from the project window.g. The properties windows is used to set the initial property values of different objects.color etc. If this window is not present . which are executed when some event occurs. Each piece of code is related to particular event of a particular object for e. The dropdown box at the top of the window lists all objects in the current form. autocomplete and bracket . Source code editors have features specifically designed to simplify and speed up input of source code. The position of the form can be changed by simply dragging the form with mouse to the desired location. CODE WINDOW It contains the statements of Visual Basic . It may be a standalone application or it may be built into an integrated development environment (IDE). PROJECT EXPLORER WINDOW It usually displays a list of all forms and modules used in our application. It may contain many pieces of code. s screen when the program will be executed. a piece of code runs when user clicks a button and another piece runs when user resizes the form etc. such as syntax highlighting. debugger. code generation. if they don't enhance. BUILD-AUTOMATION TOOLS Build automation is the act of scripting or automating a wide variety of tasks that a software developer will do in their day-to-day activities including things like: • • • • • compiling computer source code into binary code packaging binary code running tests deployment to production systems creating documentation and or release notes This automated build is in contrast to a manual build process where a person has to perform multiple. while many text editors can be used to edit source code. assembly language or machine language). A language rewriter is usually a program that translates the form of expressions without a change of language." but simply "text editors that can also be used to edit source code.g. These editors also provide a convenient way to run a compiler. . A compiler is likely to perform many or all of the following operations: lexical analysis. often tedious and error prone tasks. often having a binary form known as object code). automate or ease the editing of code. A program that translates between high-level languages is usually called a language translator. semantic analysis. The most common reason for wanting to transform source code is to create an executable program.. A program that translates from a low level language to a higher level one is a decompiler. they are not "source code editors. The goal of this automation is to create a one-step process for turning source code into a working system. source to source translator.matching functionality. This is done to save time and to reduce errors. interpreter. or other program relevant for software development process. The name "compiler" is primarily used for programs that translate source code from a high-level programming language to a lower level language (e. and code optimization. or language converter. parsing.” COMPILER OR INTERPRETER A compiler is a computer program (or set of programs) that transforms source code written in a computer language (the source language) into another computer language (the target language. So. preprocessing. (A "crash" happens when the program cannot continue because of a programming bug. D. and tracking the values of some variables. stopping (breaking) (pausing the program to examine the current state) at some kind of event by means of breakpoint. When the program crashes. For example. a technique that allows great power in its ability to halt when specific conditions are encountered but which will typically be much slower than executing the code directly on the appropriate processor. debuggers also offer more sophisticated functions such as running a program step by step (single-stepping). the debugger shows the position in the original code if it is a source-level debugger or symbolic debugger.Text F = Text2. F As Integer D = Text1. rather than merely to observe it. DEBUGGER A debugger is a computer program that is used to test and debug other programs. perhaps the program tried to use an instruction not available on the current version of the CPU or attempted access to unavailable or protected memory. The code to be examined might alternatively be running on an instruction set simulator (ISS). commonly seen in integrated development environments.TYPES OF AUTOMATION: • • • Commanded automation such as a user running a script on the command line Scheduled automation such as a continuous integration server running a nightly build Triggered automation such as a continuous integration server running a build on every commit to a version control system. If it is a low-level debugger or a machine-language debugger it shows the line in the disassembly. Some debuggers have the ability to modify the state of the program while it is running.) Typically.Text U=D+F . SOURCE CODE OF ASSIGNED TASK OF VISUAL BASIC (CALCULATOR) Private Sub Command1_Click() Dim U. Text2.MsgBox (" YOUR REQUIRED VALUE IS :") & U. "MULTIPLICATION" End Sub Private Sub Command4_Click() Dim T As Integer T = Text1. vbExclamation.Text MsgBox (" YOUR REQUIRED VALUE IS :") & R.Text MsgBox (" YOUR REQUIRED VALUE IS :") & W.Text MsgBox (" YOUR REQUIRED VALUE IS :") & T. vbExclamation. "ADDITION" End Sub Private Sub Command2_Click() Dim R As Integer R = Text1. "SUBSTRACTION" End Sub Private Sub Command3_Click() Dim W As Integer W = Text1. "DIVISION" End Sub THE END . vbInformation.Text .Text * Text2. vbInformation.Text / Text2.
Copyright © 2024 DOKUMEN.SITE Inc.