Com 211 Oobasic Theory Book

Com 211 Oobasic Theory Book

UNESCO-NIGERIA TECHNICAL & VOCATIONAL EDUCATION REVITALISATION PROJECT-PHASE II NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY OOBASIC/VISUAL BASIC PROGRAMMING COURSE CODE: COM 211 YEAR I SEMESTER II THEORY Version 1: December ,2008 Table Of Contents WEEK 1 Concept of programming .................................................................................................. 4 Systems Development Cycle ............................................................................................ 4 How windows work .......................................................................................................... 5 WEEK 2 The Visual Basic environment .......................................................................................... 5 Starting Visual Basic ........................................................................................................ 7 Stopping Visual Basic ...................................................................................................... 8 Getting online help ........................................................................................................... 8 Opening Application...................................................................................................... 12 Creating Simple application ( Wizard ) ........................................................................... 12 Running your application ................................................................................................ 18 Creating Executable File ................................................................................................. 19 Saving your application .................................................................................................. 20 VB Character set ............................................................................................................ 22 Relational Operators ....................................................................................................... 22 Arithmetic Operators ..................................................................................................... 22 Blank character ............................................................................................................... 22 Data Types ..................................................................................................................... 22 WEEK 3 Declaring Variables ........................................................................................................ 26 Assigning Values to Variables ........................................................................................ 28 Mathematical Expressions .............................................................................................. 30 Conditional Operators ..................................................................................................... 33 WEEK 4 Properties of the Form .................................................................................................... 34 Intrinsic Controls ............................................................................................................ 37 Label control .................................................................................................................. 38 Text Box ........................................................................................................................ 40 Focus In on Controls ...................................................................................................... 42 The Command Button .................................................................................................... 42 The PictureBox Control .................................................................................................. 44 The Image Control .......................................................................................................... 46 WEEK 5 Creating non-wizard applications.................................................................................... 47 Adding Controls to applications ...................................................................................... 47 Managing Controls ........................................................................................................ 48 Change the control properties ......................................................................................... 48 Handling Control Event .................................................................................................. 57 Writing Code ................................................................................................................. 63 WEEK 6 If...Then...Else Statement ................................................................................................ 65 Select Case Statement ..................................................................................................... 67 OptionButton Control ..................................................................................................... 69 CheckBox Control .......................................................................................................... 72 Frame Control ................................................................................................................ 78 WEEK 7 Do...Loop Statement ....................................................................................................... 80 For...Next Statement ....................................................................................................... 81 Sub Statement................................................................................................................. 84 WEEK 8 Supplied Numeric Functions (Math Functions ) .............................................................. 88 Abs Function .................................................................................................................. 88 Int Functions .................................................................................................................. 88 Rnd Function .................................................................................................................. 89 Sqr Function ................................................................................................................... 90 Supplied String Function ................................................................................................ 90 Len Function .................................................................................................................. 90 2 LCase and Functions ...................................................................................................... 91 UCase Function .............................................................................................................. 91 Asc Function .................................................................................................................. 92 Chr Function .................................................................................................................. 92 Supplied Time And Date Functions ................................................................................ 93 Now Function ................................................................................................................. 93 Date Function ................................................................................................................. 93 Time Function ................................................................................................................ 93 WEEK 9Non-Arrays data values .................................................................................................. 94 Arrays data values .......................................................................................................... 94 Declaring Fixed-Size Arrays ........................................................................................... 95 Multidimensional Arrays ................................................................................................ 97 WEEK 10List Boxes Controls That Work Like Arrays ................................................................... 99 List Boxes: Controls That Work Like Arrays ................................................................ 109 WEEK 11 Combo Boxes ............................................................................................................... 117 The Timer Control ........................................................................................................ 122 Scrolling the Scroll Bars ............................................................................................... 124 WEEK 12 MsgBox Function ......................................................................................................... 128 InputBox Function ........................................................................................................ 131 WEEK 13 The Basic Elements of a Database ................................................................................ 133 WEEK 14 Using Data Control ....................................................................................................... 134 Data Access Objects (DAO) ......................................................................................... 136 Visual Basic Wizard ..................................................................................................... 137 Data Form Wizard .......................................................................................................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    160 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us