Lab Assignment 2 - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

Lab Assignment 2

Description:

Data type: Integer, String, Double. Arithmetic operation. String ... Zip your files and folders. Upload your assignment to WebCT. https://courses.missouri.edu ... – PowerPoint PPT presentation

Number of Views:22
Avg rating:3.0/5.0
Slides: 13
Provided by: webMis
Category:
Tags: assignment | files | lab | zip

less

Transcript and Presenter's Notes

Title: Lab Assignment 2


1
Lab Assignment 2
  • Date 01/25/2007
  • Jingqian Xu

2
Notice
  • Slides can be downloaded here
  • http//web.missouri.edu/jxhtc/CS1040/
  • Office Hour changed to
  • Tuesday 430pm-530pm
  • EBW242

3
Goal
  • Label, list box
  • Data type Integer, String, Double
  • Arithmetic operation
  • String operations string concatenation
  • Assignment statement, Dim statement
  • Format functions

4
Naming convention
  • Controls and Naming conventions
  • Form
  • Button
  • Text box
  • Label
  • List box
  • Name every control before coding!

5
Dim statement
  • Dim varname As datatype
  • Dim a AS String
  • a abc
  • Dim b As Integer
  • b 1
  • Dim c As Double
  • c 1.50

6
Format functions
  • FormatNumber(n, r)
  • FormatNumber(234.578, 1)
  • FormatCurrency(n, r)
  • FormatCurrency(199.243, 2)
  • FormatPercent(n, r)
  • FormatPercent(0.051, 2)

7
With block
  • With
  • .
  • .
  • .
  • End With

8
With block
  • Example
  • With lstResults.Items
  • .Clear()
  • .Add(My program)
  • .Add(Hello World!)
  • End With
  • Output
  • My Program
  • Hello World!

9
Exit
  • End the program
  • End
  • Me.Close()

10
Lab Assignment 2
11
Lab Assignment 2
12
Finish
  • AGAIN - Save your project
  • Zip your files and folders
  • Upload your assignment to WebCT
  • https//courses.missouri.edu/
Write a Comment
User Comments (0)
About PowerShow.com