Presentation is loading. Please wait.

Presentation is loading. Please wait.

Visual Basic Project 2 IDS 306 Spring 1999 V. Murphy.

Similar presentations


Presentation on theme: "Visual Basic Project 2 IDS 306 Spring 1999 V. Murphy."— 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


Download ppt "Visual Basic Project 2 IDS 306 Spring 1999 V. Murphy."

Similar presentations


Ads by Google