VISUAL BASIC
Visual Basic uses a GUI (Graphical User Interface), meaning the user can interact with objects.
The Basics
OBJECTS
-Form- place objects on
-Label- allows you to put text on the fform
-Command Button- executes code when cliicked.
EVENT PROCEDURE
-Code that is executed when the user innteracts with the program.
PREFIXES
-Whenever naming an object, you need too include these:
Form-frmProject
Label-lblWord
Command Button-cmdDone
-To end a project (done button), use the
following code: unload frmFormName
-Comment Code: use & '(apostrophe)<
-Tells user what code is doing
-Apostrophe ends program
RUN TIME VS. DESIGN TIME
-Run time runs program and the user interacts with it
-Design time uses code and sets up form
OPTION EXPLICIT
-Type in (General) section
-Checks to see if all variables are dimensioned
TEXTBOXES
-allows user to enter info
-prefix txt
Properties
-Name
-Text, no caption
-Alignment
-Always place info from textbox in a variable