visual basic project 2 l.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Visual Basic Project 2 PowerPoint Presentation
Download Presentation
Visual Basic Project 2

Loading in 2 Seconds...

play fullscreen
1 / 12

Visual Basic Project 2 - PowerPoint PPT Presentation


  • 111 Views
  • Uploaded on

Visual Basic Project 2. IDS 306 Spring 1999 V. Murphy. List boxes and Combo boxes. Type set with Style property List property AddItem method ListIndex. Text Boxes. Locked property when true user cannot change its contents MultiLine property ScrollBars property horizontal or vertical

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Visual Basic Project 2' - shandra


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
visual basic project 2

Visual Basic Project 2

IDS 306 Spring 1999

V. Murphy

list boxes and combo boxes
List boxes and Combo boxes
  • Type set with Style property
  • List property
  • AddItem method
  • ListIndex
text boxes
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
frames and other controls
Frames and other controls
  • Frame
  • Option Button
    • why use a non-visible button
  • Shapes
    • borders
    • visual enhancements
  • Check boxes
variables
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
declaring variables
Declaring Variables
  • Implicitly declared--created by using them
    • rate = 3.5
  • Explicitly declared--in a separate code statement
    • Dim variablename As datatype
  • scope
  • static
predefined formats
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
strings
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
control code characters
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