1 / 12

Visual Basic Project 2

Visual Basic Project 2. IDS 306 Spring 1999 V. Murphy. List boxes and Combo boxes. see table 2-1 page 2.13 for types Type set with Style property List property AddItem method ListIndex. Text Boxes. Locked property when true user cannot change its contents MultiLine property

posy
Télécharger la présentation

Visual Basic Project 2

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. Visual Basic Project 2 IDS 306 Spring 1999 V. Murphy

  2. List boxes and Combo boxes • see table 2-1 page 2.13 for types • Type set with Style property • List property • AddItem method • ListIndex

  3. Text Boxes • Locked property • when true user cannot change its contents • MultiLine property • ScrollBars property • horizontal or vertical • Note: there is no caption property for a text box

  4. Frames and other controls • Frame • Option Button • why use a non-visible button • Shapes • borders • visual enhancements • Check boxes

  5. Variables • Data type--determines kind of data variable can store • Naming rules • must begin with a letter • cannot be more than 255 characters • cannot contain punctuation or blank spaces

  6. Declaring Variables • Implicitly declared--created by using them • rate = 3.5 • Explicitly declared--in a separate code statement • Dim variablename As datatype • scope • static

  7. Arithmetic Operators see table 2-7 page 2.45

  8. Comparison Operators see table 2-8 page 2.46

  9. Predefined Formats • General Number--displays as is • Currency--dollar sign, thousand separator, 2 digits to right, negatives in parentheses • Fixed--2 digits to right, at least 1 to left • Standard--thousands separator, (2 to right) • Percent--multiplied by 100, % • Yes/No--No if number is 0, else Yes

  10. Strings • Format$ statement • $ instructs VB to change numeric result to a string • strings • character data • placed within quotation marks • null string--““ • concatenation--adding strings together

  11. Control Code Characters • chr$(13)--return insertion point to beginning of line • chr$(10)--move insertion point down one line • constants • vbNewLine = chr$(10) & chr$(13) • False = 0 • True = -1

  12. VB Naming Conventions See Table 2-2 page 2.28

More Related