1 / 6

Understand Object Naming ( 4.02)

Understand Object Naming ( 4.02). Computer Programming 1. Objective/Essential Standard. Essential Standard : 4.00 Understand Variables and Naming Conventions Indicator 4.01Understand Variables and Data Types (5%) Indicator 4.02 Understand Object Naming (3%). Naming Objects.

jdunn
Télécharger la présentation

Understand Object Naming ( 4.02)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Understand Object Naming (4.02) Computer Programming 1

  2. Objective/Essential Standard • Essential Standard: 4.00 Understand Variables and Naming Conventions • Indicator 4.01Understand Variables and Data Types (5%) • Indicator 4.02 Understand Object Naming (3%)

  3. Naming Objects • In the last unit we learned about naming variables. Let’s focus on objects now. • What is an object? • Objects represent “real” things • Dog, Chair… • Label, Button • Objects have properties and behaviors (methods) • Button • Properites: Name, Text … • Behaviors/Methods: Click . . .

  4. Naming Objects • Common object names are listed below with examples in (): • Form - frm (frmMain) • Button - btn (btnSubmit) • Label - lbl (lblTotal) • Text Box - txt (txtAge) • Radio Button- rad (radAdd) • Check box - chk (chkDivide) • Image - img (imgMegaMan) • Combo Box - cbo (cboState) • Picture Box - pic (picFlower) • List box - lst (lstState) • Menu - mnu (mnuFile)

  5. Keyword “Me” used on Forms Ex: Me.Close Preceeding a form name with “Me” refers to the current form (The active one). Using Me is optional in VB 2010 and 2015 in most cases when using only one form. When using multiple forms, opening and closing forms must use the Me.Hide or Me.Show. Computer Programming I- Summer 2011

  6. Vocabulary Object Naming Conventions for our objects

More Related