You are on page 1of 39





DEDICATION This work is dedicated to the almighty for the help and protection He had rendered to me.



Objective Of Siwes Specifically. Make the transition from school to the world of work easier. and enhance students contacts for later job placement. Provide an avenue for students in Nigerian university to acquire industrial skills and experience in their course of study. ii.The scheme is a participatory programme. involving Universities. Polytechnics and Technical Colleges¶ students of various institutions in Nigeria. the objectives of the Students Industrial Work Experience Scheme are to: i. Enlist and strengthen employers. v. . iii.INTRODUCTION The Student Industrial Work Experience Scheme (SIWES) is an appreciable skills training programme which form part of the minimum academics standard in Nigerian universities. Provide students with an opportunity to apply their theoretical knowledge in real work situation. which serves as the regulating body. involvement in the entire educational process and prepare students for employment in Industry and Commerce. Prepare student for work situation they are likely to meet after graduation. thereby bridging the gap between and actual practice. iv. It is run jointly with the Industrial Training Fund (ITF).

The Federal Government The federal government is to: . Funding . Technology. National Commission for Colleges of Education (NCCE).BODIES INVOLVED IN THE MANAGEMENT OF SIWES PROGRAMME AND ROLES The Federal Government. the National Board for Technical Education (NBTE). employers of labor and the institution. Science.The ITF. the Industrial Training Fund (ITF). Education. Medical Science and Pure and Applied Sciences. The roles are as follows: Operators . Employers of Labor and Institutions have specific roles assigned to them in the management of the SIWES Programme.Four months for Polytechnics and Colleges of Education. NCCE. the coordinating agencies (NUC.Undergraduate students of the following: Agriculture. and Six months for the Universities. Environmental.The Federal Government of Nigeria Beneficiaries . Duration . Engineering. the Supervising Agencies ± National Universities Commission (NUC). NBTE).

Make it a policy to include a clause in every major contact lasting over six to nine months begin awarded for contractors to take students in attachment The Industrial Training Fund (ITF) The industrial training fund is to: i.i. Makes it mandatory for all ministries. companies and government parastatals.e. ii. Direct for the appointment of full-time SIWES Co-ordinators. Organize bi-ennial conferences and seminars on SIWES. Ensure the establishment and accreditation of SIWES Units in institutions under their jurisdiction. ii. iii. ii. NUC. Make adequate funds available to the federal ministry of industry to fund the scheme.NCCE). Compile list of employers and available training places for industrial attachment and forward such lists to the coordinating agencies (i. iii.NBTE. . The Supervising Agencies (Nuc. Provides logistic material needed to administer the scheme. to offer attachment places to student. Nbte And Ncce) These Agencies are to: i.

iv.iii. Ensure adequate funding of the SIWES units in all the institutions. adequately staffed and funded to ensure effective operation of the Scheme. iv Identify placement opportunities for students¶ attachment with Employers. Establish SIWES co-ordinating Units with a Separate Account. Appoint SIWES co-ordinators. Prepare and submit six copies of Master Lists not later than 31st March and six copies of Placement lists not later than 31st May of each SIWES year to the ITF. Continuously monitor and review the job specifications of all the courses. . The Institutions The Institutions are to: i. and supporting staff. iii. The Unit must meet the following minimum requirement ii.

Control and discipline students like permanent staff. iii. vi Organize orientation courses in collaboration with the ITF for their students.v Supervise students at their places of attachment and sign their logbooks. Supervision should not handle more than ten students at a time. ii. The Students The students are to: . The Employers The employers are to: i. Accept students and assign them to relevant on the job training. Attach experienced staff to students for effective training and supervision.

To be obedient to constituted authorities and adhere strictly to all rules and regulations of the Organization where the student is attached. To be regular and punctual at respective places of attachment. iv. . To record all training activities and other assignments in the log-book and complete ITF Form-8 to ensure proper assessments. Log-Books The Log-books issued to students on attachment by Institutions must be checked and signed by Institution/Industry. ii. except in special circumstances which must be determined and approved by their institution¶s supervisor. vi. To avoid change of place of attachment. Supervision Of Students Students on attachment are to be supervised by Supervisors from their institutions. To attend institution¶s SIWES orientation programmer before going on attachment. iii. To complete SPE ± 1 form and get it endorsed by their employers who will forward same to the ITF. the employer and the ITF? v. take pride in the protection of employers property throughout the attachment period.i. vii.based supervisors and the ITF during supervision. professional staff of the 7ITF. To be diligent. conscientious. Institutions Supervisors are to visit students at least two times during the attachment. honest.

organization and institution in Nigeria. This is where I hoped to get the necessary ideas on computer science. Infotech and Hi-tech computer is fully owned and managed by professionals with distinct knowledge. So I wish to use this write up to report on the firm and what I learnt there in. I discern that the best firm for me is an information and communication technology (ICT) organization. Vission Of Infotech and Hi-tech computer Our vision is to have a world in which there are no stresses as a result of the level of ICT solution we have provided. As a computer science student. My effort resulted in my placement at Infotech and Hi-tech computer. THE FIRM: INFOTECH AND HI-TECH COMPUTER The company Infotech and Hi-tech computer was incorporated with the aim of providing ICT solution to individuals. . SIWES was meant to enlighten me and the rest of the students. So I put up a strenous effort to get placed in a firm that will really do just that.CHAPTER ONE THE FIRM I had no vivid knowledge about this until after the orientation. Mission Of Infotech and Hi-tech computer Our mission is to empower people with ICT skills and providing solutions to the unsolved ICT Challenges. The company currently operates Kwara and Lagos states.

Values Of Infotech and Hi-tech computer We value integrity. sincerity. and humility. personal excellence. Intercom installation Data recovery Sales / accessories Web development Consultancy Infotech and Hi-tech computer organogram . continual self-improvement. Our pride is in the numerous ICT challenges we have solved. Infotech and Hi-tech computer Services We are committed to service delivery with emphasis on customer satisfaction. commitment. Infotech and Hi-tech computer provides the following services: ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ Training Networking Laptop repairs Software development Digital elect.

clients need to be fed and updated with the current technological development.Departments And Functions In K Infotech And Hi-Tech Computer Training Department This department deals with impacting of knowledge on individuals who wants to advance in ICT as ICT advances with time. Engineering Department This arm of Infotech is the hardware and repair section of the company. scanning etc of various clients documents and folders. assembling and . This department ensures that the training infrastructures are properly kept and organized for easy learning. Due to the dynamic nature of IT. Business Department The department is in charge of typing. They offer services ranging from computer system repair. Consult Department The consult department renders consultancy service to their numerous clients. Marketing Department This department advertises the company profiles and service rendered in the company to prospective client. They ensure that services are being delivered to their client¶s full satisfactory. It is a major economic booster to the company as clients most especially students patronize their services. photocopy.

net classes. sales of computer accessories etc. Nonetheless I will narrow my report down to visual basic 6.0. church etc. I presented a topic ³Data Technology ³using power point.0 . Infotech has different departments. clients patronize them due to their excellent services delivered. This made me to be competent with power point presentation. offices.6. This department ensures that all students are given quality knowledge they require to portrait their future career. I was attached to Training Department. this solar energy can also be called inverter. During my Industrial Training period.0. The subsequent pages contains my knowledge on visual basic 6. Digital and Electronic Department This department deals with development of solar energy used in various places like houses.maintenance of system. Also I took part in web design development team. I also participated in the companies seminar held for all the IT students. I was privileged to be in vb. It was there that I learnt my codes yes vb.

6. Problem identification: in computing. I programmed with visual basic 6. 7. problen can be referred to as computer task that needs to be accomplished. some steps need to be taken. Solution design: for object oriented programming language this implies the conception of how the program will look like ie the user interface. 2. In other words a user may need to get a particular thing done but has no application designed to do just that. Coding: this involves writing the real-time instruction in a computer language. Maintenance: this is the modification of a computer program with the purpose of correctimg faults.0 To program means to design or write instructions in a computer programming language with the purpose of instructing the computer on how to accomplish a specific task. 5. During my stay at Infotech. the subsequent pages contains the things I learnt about visual basic during my industrial training.CHAPTER TWO PROGRAMMING WITH VISUAL BASIC 6. However for a program to be written successfully.0. 3. 4. Testing: this is the activity of evaluating the capability of a program and determining if it meet the required results. Identifying the problem means to know what the application needs to do. improving performance or other attributes. the object properties and the codes that will make the application have the desired result. Documentation: this is the act of providing a written text that accompanies a computer software with the purpose of providing an explaination of how the program operates and how to use it.1 Programming steps 1. . Debugging: this involves isolating and fixing the problem detected during the testing phase. 2.

2. Scripting languages such as VBA and VBScript are syntactically similar to Visual Basic. etc.g.3 Features of the language The language not only allows programmers to create simple GUI applications. and creation of ActiveX controls and objects. A tool is used to place controls (e.2. but perform differently. providing a dynamic application even prevent certain characters from being inserted.. Performance problems were experienced by earlier versions. a simple program can be created without the programmer having to write many lines of code. but can also develop complex applications. Since default attributes and actions are defined for the components.0 Visual Basic was derived from BASIC and enables the rapid application development of graphical user interface (GUI) applications. and writing additional lines of code for more functionality. Forms are created using drag-and-drop techniques. visual Basic can be defined as the third-generation event-driven programming language and integrated development environment (IDE) from Microsoft for its COM programming model. Programming in VB is a combination of visually arranging components or controls on a form. but with faster computers and native code compilation this has become less of an issue. Controls have attributes and event handlers associated with them. but may be changed by the programmer. Many attribute values can be modified during run time based on user actions or changes in the environment. Default values are provided when the control is created. specifying attributes and actions of those components.) on the form (window). or ActiveX Data Objects. buttons. text boxes. Remote Data Objects. . access to databases using Data Access Objects.2 Visual Basic 6.

Multiple assignment available in C language is not possible.Visual Basic can create executables (EXE files). 2. String comparisons are case sensitive by default. . or DLL files. but is primarily used to develop Windows applications and to interface database systems. ActiveX controls. Logical and bitwise operators are unified. Arrays are declared by specifying the upper and lower bounds. but can be made case insensitive if so desired. although it will transform keywords into a standard case configuration and force the case of variable names to conform to the case of the entry within the symbol table. Integers are automatically promoted to reals in expressions involving the normal division operator (/) so that division of one integer by another produces the intuitively correct result.3 The integrated development environment The Visual Basic IDE is made up of a number of components illustrated below. Controls provide the basic functionality of the application. while programmers can insert additional logic within the appropriate event handlers. Variable array base. Visual Basic is generally not case sensitive. It is also possible to use the Option Base statement to set the default lower bound. Dialog boxes with less functionality can be used to provide pop-up capabilities.

Code and form-based windows will stay within the main container form. In this format. The main menu items have sub menu items that can be chosen when needed. Some components of the IDE cannot be ignored. Menu Bar This Menu Bar displays the commands that are required to build an application. the windows associated with the project will stay within a single container known as the parent.0. the IDE is in a Multiple Document Interface (MDI) format.2.4 Brief overview of the IDE In Visual Basic 6. The toolbars in the menu bar provide quick .

access to the commonly used commands and a button in the toolbar is clicked once to carry out the action represented by it. A Toolbox is represented in figure 2 shown below. Additional controls can be included in the toolbox by using the Components menu item on the Project menu. HScrollBar and VScrollBar: These controls allow the user to select a value within the specified range of values Timer: Executes the timer events at specified intervals of time . CheckBox: Displays a True/False or Yes/No option. or to type in a selection in the TextBox. OptionButton: OptionButton control which is a part of an option group allows the user to select only one option even it displays mulitiple choices. This allows the user to select an ietm from the dropdown ListBox. Toolbox The Toolbox contains a set of controls that are used to place on a Form at design time thereby creating the user interface area. Frame: Serves as a visual and functional container for controls CommandButton: Used to carry out the specified action when the user chooses it. The toolbox contains some controls as follows Pointer: Provides a way to move and resize the controls form PictureBox: Displays icons/bitmaps and metafiles. It displays text or acts as a visual container for other controls. TextBox: Used to display message and enter text. ListBox: Displays a list of items from which a user can select one. ComboBox: Contains a TextBox and a ListBox.

. the Project Explorer window also lists code modules and classes. In addition to forms. which are displayed. The Properties Window exposes the various characteristics of selected objects. just under the tollbar. classes and modules. FileListBox: Displays a set of files from which a user can select the desired one. It is possible to develop any number of forms for use in a program. is the Project Explorer window. display and manipulate data from other windows based applications. OLE: Used to link or embed an object. although a program may consist of a single form. Project Explorer: Docked on the right side of the screen. DirListBox: Allows the user to select the directories and paths.DriveListBox: Displays the valid disk drives and allows the user to select one of them. But less capability than the PictureBox Data: Enables the use to connect to an existing database and display information from it. Shape : Used to add shape (rectangle. Label: Displays a text that the user cannot modify or interact with. square or circle) to a Form Line: Used to draw straight line to the Form Image: used to display images such as icons. A simple project will typically contain one form. which is a window that is designed as part of a program's interface. bitmaps and metafiles. Each and every form in an application is considered an object. The Project Explorer as shown in in figure servres as a quick reference to the various elements of a project namely form. Properties Window The Properties Window is docked under the Project Explorer window. All of the object that make up the application are packed in a project.

Methods are denoted by little green blocks. Thus. The fundamental data types in Visual Basic including variant are integer. while events are denoted by yellow lightning bolt icon. string. a form has properties and any controls placed on it will have propeties too. Each data type has limits to the kind of information and the minimum and maximum values it can hold. double. byte and Boolean. Numeric Byte . Visual Basic supports a vast array of data types. It is accessed by selecting Object Browser from the View menu or pressing the key F2. we can see its members (properties. 2. long.0 By default Visual Basic variables are of variant data types. The variant data type can store numeric. currency. methods and events) in the right column. All these characteristics of an object are called its properties. A property is represented by a small icon that has a hand holding a piece of paper. 1. The left column of the Object Browser lists the objects and classes that are available in the projects that are opened and the controls that have been referenced in them. All of these properties are displayed in the Properties Window. In addition. some types can interchange with some other types. Other characteristics affect not just the appearance of the object but the way it behaves too. date/time or string data. events and methods that are made available to us. single. It is possible for us to scroll through the list and select the object or class that we wish to inspect. Object Browser The Object Browser allows us to browse through the various properties.5 Data types in Visual Basic 6. each object in Visual Basic has characteristics such as color and size.Now. When a variable is declared. a data type is supplied for it that determines the kind of data they can store. After an object is picked up from the Classes list. A list of Visual Basic's simple data types are given below.

(+ 32.767) Long Store integer values in the range of (.4x1038) Double Store large floating value which exceeding the single data type value Currency store monetary values.(+ 3. A variable declared as date type can store both date and time values and it can store date values 01/01/0100 up to 12/31/9999 4.(+ 2.4x10-38) . Date Use to store date and time values. A variable length string can store approximately 4 billion characters 3.768) .483.Store integer values in the range of 0 . These are not stored as numeric values and cannot be used as such. It supports 4 digits to the right of decimal point and 15 digits to the left 2.483. Values are internally stored as -1 (True) and 0 (False) and any non-zero value is considered as true.147.147.2. Boolean Boolean data types hold either a true or false value. String Use to store alphanumeric values. .468) Single Store floating point value in the range of (-3.255 Integer Store integer values in the range of (-32.468) .

In Visual Basic if we declare a variable without any data type by default the data type is assigned as default. Variant Stores any type of data and is the default Visual Basic data type.5. Operators in Visual Basic Arithmetical Operators Add Substract Divide Integer Division Multiply Exponent (power of) Mod Relational Operators Greater than Less than False Greater than or equal to True Less than or equal to Not Equal to True Equal to .

the next chapter eill deliberate on programming structures and flow control.Logical Operators AND In some programs there are need to structure and control cde flow. .

The Individual elements of an array are identified using an index. Local arrays are declared in a procedure using Dim or Static. When the user wants to use a value that never changes. module or local. Constants Constants are named storage locations in memory. The Const statement is used to create a constant. Constants can be declared as illustrated below. The programmer specifies the array type and the number of elements required by the array so that the compiler may reserve the appropriate amount of memory.0. Array must be declared explicitly with keyword "As". Arrays have upper and lower bounds and the elements have to lie within those bounds. module or global scope and can be public or private as for variables.0 VB Array . Constants can be declared in local.Arrays in Visual Basic 6 An array is a consecutive group of memory locations that all have the same name and the same type. We can declare an array of any of the basic data types including variant. Public Const gravityconstant As Single = 9. we specify the array name and the array element position number. user-defined types and object variables. To refer to a particular location or element in the array.CHAPTER THREE PROGRAMMING STRUCTURES AND FLOW CONTROL 3. form.81 . a constant can be declared and created. the value of which does not change during program Execution.1 Declaring arrays Arrays occupy space in memory. Module arrays are declared in the general declarations using keyword Dim or Private. 3. Each index number in an array is allocated individual memory space and therefore users must evade declaring arrays of larger size than required. The individual elements of an array are all of the same data type. Arrays may be declared as Public (in a code module). They remain the same throughout the program execution.

to have more control over the variables. If we want a variable to be available to all of the procedures within the same module. Syntax Dim variable [As Type] 3. A variable is declared in general declaration section of e Form. Though this type of declaration is easier for the user. it assigns the default variable type and value. a variable is declared with broader scope. #. !. Local variables are recognized only in the procedure in which they are declared. It must be unique within the same scope.1 Variables in Visual Basic 6 Variables are the memory locations which are used to store values temporarily. @ or $.1 Scope of variables A variable is scoped to a procedure-level (local) or module-level variable depending on how it is declared.3. It should not contain any special character like %. it is advisable to declare them explicitly. procedure or object determines which part of the code in our application are aware of the variable's existence. It is not must that a variable should be declared before using it. or to all the procedures in an application. Declaring a variable tells Visual Basic to reserve space in memory. The scope of a variable. The As type clause in the Dim statement allows to define the data type or object type of the variable. Automatically whenever Visual Basic encounters a new variable. &. They can be declared with Dim and Static keywords. and hence is available to all the procedures. A variable name must begin with an alphabet letter and should not exceed 255 characters. Local Variables Static Variables Module Levele Variables .1. This is called implicit declaration. The variables are declared with a Dim statement to name the variable and its type. This is called explicit declaration. A defined naming strategy has to be followed while naming a variable.

...0 Control Statements are used to control the flow of program's execution...2 Control Structures in Visual Basic 6..Then selection structure performs an indicated action only when the condition is True.: If average>75 Then txtGrade. and Loop structures such as Do While....Then.Wend....Else. 3... Select.2.2 If.... Syntax of the If..2.Loop... if. Visual Basic supports control structures such as if.... otherwise the action is skipped. For.Case. Then.Else selection structure The If..g.Then selection structure The If.Text = "A" End If 3.Then. While.Then.Then selection If <condition> Then statement End If e...1 If..Next etc method... Syntax of the If.Else selection If <condition > Then statements Else statements .3..Then ..Else selection structure allows the programmer to specify that a different action is to be performed when the condition is True than when the condition is False..

....4 Select.g..ElseIf for selectively executing a single block of statements from among multiple block of statements..Then..Case.. Syntax of the Select.Else selection structures test for multiple cases by placing is more convenient to use than the If...Then..Case structure is an alternative to If.Else.Text = "Fail" End If 3..: If average>50 Then txtGrade..End If e.... Select.... The following program block illustrate the working of Select..3 Nested If.Then......End If..Text = "Pass" Else txtGrade.Case selection structure Select Case Index Case 0 Statements Case 1 Statements End Select ..Else structures..Else selection structure Nested If.Case selection structure Select. Syntax of the Nested If..Else selection structures inside If.Then.......Then..Else selection structure 3.

: Assume you have to find the grade using select..Text ="C" Case 54 To 45 txtGrade.Text ="F" Case Else MsgBox "Invalid average marks" End Select Note: In this example I have used a message box function.g.Text ="B" Case 64 To 55 txtGrade.Text ="S" Case 44 To 0 and display in the text box Dim average as Integer average = txtAverage.. Loops (Repetition Structures) in Visual Basic 6 .e.Text Select Case average Case 100 To 75 txtGrade. In later lessons you will learn how to use message box functions.Text ="A" Case 74 To 65 txtGrade.

...... The following While. Dim number As Integer number = 1 Do While number <= 100 number = number + 1 Loop A variable number is initialized to 1 and then the Do While Loop starts... if condition is True. then the statements are executed.Loop is used to execute statements until a certain condition is met. If condition is False on the first pass. First.. Loop Statement The Do While.Loop statement. Wend Statement A While.. the condition is tested... Do While.A repetition structure allows the programmer to that an action is to be repeated until given condition is true.Loop While Statement ..Wend counts from 1 to 100 Dim number As Integer number = 1 While number <=100 number = number + 1 Wend Do. While. the statements are never executed.Wend statement behaves like the Do While. The following Do Loop counts from 1 to 100.. When it gets to the Loop it goes back to the Do and tests condition again.

. Loop structure tests a condition for falsity.Loop and While.Wend repetition structures. Statements in the body of a Do Until.... Then it determines whether the counter is less than 501. An example for Do Until...Wend repetition structures. The following program block illustrates the structure: Dim number As Long number = 0 Do number = number + 1 Loop While number < 201 The programs executes the statements between Do and Loop While structure in any case...Loop While statement first executes the statements and then test the condition after each execution.. the Do Until. If so... Loop structure tests a condition for falsity.Loop are executed repeatedly as long as the loopcontinuation test evaluates to False..Loop and While...Loop Statement Unlike the Do While...Loop are executed repeatedly as long as the loopcontinuation test evaluates to False... Do Until...The Do. Statements in the body of a Do Until. the Do Until.Loop Statement Unlike the Do While.Loop statement. The coding is typed inside the click event of the command button Dim number As Long number=0 ... An example for Do Do Until... the program again executes the statements between Do and Loop While else exits the Loop.

. For x = 1 To 50 . In order to display numbers horizontally the following method can be used. 7.. The For.etc The above coding will display numbers vertically on the form..Next repetition structure handles all the details of countercontrolled repetition. For.Next Loop is another way to make loops in Visual Basic. 5..Next Loop The For.. 3. The following loop counts the numbers from 1 to 100: Dim x As Integer For x = 1 To 50 Print x Next In order to count the numbers from 1 yo 50 in steps of 2... the following loop can be used For x = 1 To 50 Step 2 Print x Next The following loop counts numbers as 1.Do Until number > 1000 number = number + 1 Print number Loop Numbers between 1 to 1000 will be displayed on the form as soon as you click on the command button.

3.3. such as their response to the user input..1 Creating and Using Controls A control is an object that can be drawn on a Form object to enable or enhance user interaction with an application. Dim number As Integer For number = 1 To 10 If number = 4 Then Print "This is number 4" Else Print number End If Next In the output instead of number 4 you will get the "This is number 4". They . such as position. 3. methods and events. and aspects of their behavior.Next repetition structure which is with the If condition used. size and colour.Print x & Space$ (2). Controls are used to recieve user input and display output and has its own set of properties.. Let us discuss few of these controls in this lesson. Next To increase the space between the numbers increase the value inside the brackets after the & Space$. It also helps us to understand the concept of Control Arrays. Following example is a For.3 Working with controls in Visual Basic 6 This lesson concentrates on Visual Basic controls and the ways of creating and implementing the. Controls have properties that define aspects their appearance.

You invoke this tool from the Menu Editor button on the standard toolbar or by pressing the Ctrl+E shortcut key. For instance.5 Working with Menus in Visual Basic 6. The below dialog is displayed when the Menu Editor is . Maximize. 3. On the other hand. 3. but some-such as Open and Save are frequently found in applications. and as such they deserve a place in this chapter. For instance. Clicking this icon opens the Control Menu. ListBox entries or ScrollBars to select a value.can respond to events initiated by the user or set off by the system. you design them in the Menu Editor window. a code could be written in a CommandButton control's click event procedure that would load a file or display a result. Visual Basic provides an easy way to create menus with the modal Menu Editor dialog. On the left end of the title bar is the Control Menu icon. Minimize and Close buttons can be found on the right side of the Form. Clicking on these buttons performs the associated function. as you can see in the figur below. methods can also be used to manipulate controls from code. the move method can be used with some controls to change their location and size. For example. There's also a Menu Editor command in the Tools menu. Most of the controls provide choices to users that can be in the form of OptionButton or CheckBox controls. In addition to properties and events. rather. menus behave differently from other controls. Menus are intrinsic controls.0 Windows applications provide groups of related commands in Menus.4 Working with Forms in Visual Basic 6 The Appearance of Forms The main characteristic of a Form is the title bar on which the Form's caption is displayed. you don't drop menu items on a form from the Toolbox. Let us discuss these controls by means of a few simple applications in the following lessons. but you probably won't use it often. These commands depends on the application.

6 The Multiple Document Interface (MDI) in Visual Basic 6 The Multiple Document Interface (MDI) was designed to simplify the exchange of information among documents. an out-of-bound array index. continue executing) from infrequent fatal errors rather than letting them occur and suffering the consequences (such as loss of application data). Error handling is designed for dealing with synchronous errors such as an attempt to divide by 0 (that occurs as the program executes the divide instruction). the program can be exited "gracefully"-all files can be closed and notification can be given that the program is terminating. The main Form. and it is called the parent window. 3. Data exchange is easier when you can view and compare many documents simultaneously. If an error is severe and recovery is not possible. but it acts as a container for all the windows. The windows in which the individual documents are displayed are called Child windows. Error handling enables the programmer to attempt to recover (i. and arithmetic overflow. 3. isn't duplicated. Each document is displayed in its own window. Other common examples of synchronous errors are memory exhaustion. more fault-tolerant programs. all under the same roof.selected in the Tool Menu. With the main application. Multiple Word is a typical example. but not multiple copies of the application. or MDI Form. although most people use it in single document mode. you can maintain multiple open windows. Error . The recovery code is called an error handler. and all document windows have the same behavior. And also you can display the Menu Editor window by right clicking on the Form and selecting Menu Editor..7 Visual Basic 6 -Error handling and Debugging and File Input/Output Error Handling enables programmers to write clearer. The Menu Editor command is grayed unless the form is visible.e. more robust. You almost certainly use Windows applications that can open multiple documents at the same time and allow the user to switch among them with a mouse-click.

. The problem with the scheme is that code in a sense becomes "polluted" with error handling. Products tend to contain much more error-handling code than is contained in "casual" software. Error-handling code varies in nature and amount among software systems depending on the application and whether or not the software is a product for release. Errors are dealt with the places in the code where errors are likely to occur. error-handling code is interspersed throughout a program's code. It becomes difficult for a programmer concerned with the application itself to read the code and determine if the code is working is correctly. The advantage of this approach is that a programmer reading the code can see the error handling in the immediate vicinity of the code and determine if the proper error handling has been implemented. Error handling often makes the code more difficult to understand and maintain. Usually.handling provides the programmer with a disciplined set of capabilities for dealing with these types of errors.

Indicate the names that you plan the forms and each object on the form. Grooming also matters. The programmer observes some steps to get this done. 2. consult you user and make sure that both of agree on the look.1 Office conduct: It is a good practice to be punctual at work every day and sign in.2 Basic computer knowledge: I learnt many things about windows. you plan the classes and procedures that will be execute when your project runs. 4. For each object. I learnt how projects are created. setting up some preferences in the control panel. write down the properties you plan to set or change during the design of the form. 4. On your sketch.1 The three-step process Planning 1.3 Programming: Through examples I witnessed firsthand. Before you proceed to next step. Plan the properties. You will determine which event requires action to be taken and then make a step-by-step plan . Assigned duties should be completed promptly. programming concept and practical aspects of some theoretical knowledge I had before. how to respond to dialogs.0 INDUSTRIAL TRAINING IMPACT The industrial training provided me with work methods. 4. 4. In this step. Plan the basic code. 3.3. Due honor should be accorded to business clients so that the firm would not lose their patronage. show the forms and all the controls that you will plan to use. basic computer knowledge. Designing the user interface. The industrial training enlightened me in the following areas. It is ice to dress decently.CHAPTER FOUR 4. You first draw a sketch of the screens the user will see when running your project. installation of software and so many more.

The next thing is write pseudo code. Define the user interface. you must plan for event that occurs when the user clicks on the Exit button. and the word that appears on top of the control and in the form¶s title bar. . Set the properties. 3. 1. The pseudocode for the event could be Terminate the project or Quit. When you set the properties of the object.for those actions. which is English expression or comment that describes the action. You will use basic programming statements (called Basic Code) to carry out the actions needed by your program. When you define the user interface. the size of the text. you are ready to begin the actual construction of the project. 2. An example below illustrates the steps I discussed above. you give each object a name and define such attributes as the content of the label. Programming After you have completed the planning steps and have approved from your user. you create the forms and controls that you designed in the planning stage. Write the basic code. Use the same three-step process that you used for planning. For example.

CHAPTER FIVE 5. Agriculture and other Educational professional programs in Nigerian Universities. In effect this reduces the rate of unemployment. I also want to beg the further cooperation of all interest group in SIWES. ways of safe-guarding the work areas and works in Industries and other organization so that when a student graduates. Medical.0 Conclusion Over the years SIWES has contributed immensely to the academic and practical welfare of graduating students to the extent that its impact can never be termed µinsignificant¶. Machines. industries and ITF to cooperate in ensuring the proper placement and training of students. the universities. . It is important at this point to thank all those who in various ways have contributed to making SIWES a success. The aim of this scheme is to join theory and practice of Science. Equipments. It is inclined at exposing students to professional work. he becomes self dependent. Engineering.