460 likes | 622 Views
Microsoft Visual Basic 2008: Reloaded, Third Edition. 2. Objectives. After studying this chapter, you should be able to:Create a structureDeclare and use a structure variableCreate an array of structure variablesWrite information to a sequential access fileAlign the text written to a sequential
E N D
1. Microsoft Visual Basic 2008: Reloaded Third Edition Chapter Ten
Structures and Sequential Access Files
2. Microsoft Visual Basic 2008: Reloaded, Third Edition 2 Objectives After studying this chapter, you should be able to:
Create a structure
Declare and use a structure variable
Create an array of structure variables
Write information to a sequential access file
Align the text written to a sequential access file
3. Microsoft Visual Basic 2008: Reloaded, Third Edition 3 Objectives (continued) Read information from a sequential access file
Determine whether a file exists
Delete a file while an application is running
Code the FormClosing event
Prevent a form from closing
4. Microsoft Visual Basic 2008: Reloaded, Third Edition 4 Structures Structure statement: used to create your own data type
User-defined data type (or structure): data types created by using the Structure statement
Member variables: variables defined within a structure
Structure can include member variables of:
Any standard data types
Other structure types
Usually declared in the form’s Declarations section
5. Microsoft Visual Basic 2008: Reloaded, Third Edition 5 Structures (continued)