title: nov 1412:24 pm (1 of 27)cisweb.bristolcc.edu › ~pgrocer › audio_smartboardf19 ›...

27
Title: Nov 1412:24 PM (1 of 27)

Upload: others

Post on 27-Jan-2021

0 views

Category:

Documents


0 download

TRANSCRIPT

  • Title: Nov 1412:24 PM (1 of 27)

  • Title: Nov 1412:31 PM (2 of 27)

  • I went into languageand selected Visual Basic

    Title: Nov 1412:32 PM (3 of 27)

  • Select this

    Title: Nov 1412:32 PM (4 of 27)

  • Give in a name and choosethe location to store yourproject.

    Title: Nov 1412:34 PM (5 of 27)

  • Title: Nov 1412:37 PM (6 of 27)

  • The button wasnamedbtnClick

    Title: Nov 1412:39 PM (7 of 27)

  • Title: Nov 1412:39 PM (8 of 27)

  • I double clicked on the Click buttonand brought up the area where Ican add code.Then I actually clicked on theStart (with the green triangle) torun.

    Title: Nov 1412:44 PM (9 of 27)

  • Now I want to download one of my examples.Right click on the zipped file you want to download andclick on Save Link As to save it.

    Title: Nov 1411:02 AM (10 of 27)

  • Click on the saved zip file and thenuse Extract all to unzip it.

    Title: Nov 1412:47 PM (11 of 27)

  • Title: Nov 1412:48 PM (12 of 27)

  • The single quote in front of the lines of text makes it a comment.The first comment will concatenate.The second comment uses Val to get numbers to add. Val is an older way to do this.The CInt makes sure VB knows it is numbers so the add can be done.

    Title: Nov 1412:52 PM (13 of 27)

  • Title: Nov 1412:53 PM (14 of 27)

  • Title: Nov 1412:53 PM (15 of 27)

  • Using a basic if and sincethey are equal the messageis same

    Title: Nov 1412:59 PM (16 of 27)

  • Title: Nov 1412:59 PM (17 of 27)

  • Data on the form is consideredstring and so stored differentlythen numbers.  CInt convertsto a number.

    Title: Nov 141:03 PM (18 of 27)

  • Title: Nov 141:05 PM (19 of 27)

  • Setting up avariable that isdefined in a suband thereforeonly availableto that sub.

    Title: Nov 141:09 PM (20 of 27)

  • Setting up avariable thatis global andthereforeavailable to allsubs.

    Title: Nov 141:10 PM (21 of 27)

  • Title: Nov 141:10 PM (22 of 27)

  • Title: Nov 141:12 PM (23 of 27)

  • In this code I define variables, take in user data and assign it to the variables, do acalculation and assign the answer to thevariable, convert the variable to currencyand assign it to a textbox on the form.

    Title: Nov 141:30 PM (24 of 27)

  • Title: Nov 141:31 PM (25 of 27)

  • Title: Nov 141:31 PM (26 of 27)

  • Title: Nov 141:33 PM (27 of 27)

    Page 1: Nov 14-12:24 PMPage 2: Nov 14-12:31 PMPage 3: Nov 14-12:32 PMPage 4: Nov 14-12:32 PMPage 5: Nov 14-12:34 PMPage 6: Nov 14-12:37 PMPage 7: Nov 14-12:39 PMPage 8: Nov 14-12:39 PMPage 9: Nov 14-12:44 PMPage 10: Nov 14-11:02 AMPage 11: Nov 14-12:47 PMPage 12: Nov 14-12:48 PMPage 13: Nov 14-12:52 PMPage 14: Nov 14-12:53 PMPage 15: Nov 14-12:53 PMPage 16: Nov 14-12:59 PMPage 17: Nov 14-12:59 PMPage 18: Nov 14-1:03 PMPage 19: Nov 14-1:05 PMPage 20: Nov 14-1:09 PMPage 21: Nov 14-1:10 PMPage 22: Nov 14-1:10 PMPage 23: Nov 14-1:12 PMPage 24: Nov 14-1:30 PMPage 25: Nov 14-1:31 PMPage 26: Nov 14-1:31 PMPage 27: Nov 14-1:33 PM