



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




History
Visual Basic
Alternatives
Visual Basic Fundamentals:
Integrated Development Environment:
Integrated Development Environment (IDE)
Naming Conventions
Typical Presentation of a VB Program:
COMPONENT PREFIX Form frm Check box chk Combo box cbo Command button cmd Directory list dir Drive list drv File list fil Frame fra Grid grd Horizontal scrollbar hsb Image img Label lbl Line lin List box lst Menu mnu Option button opt Picture box pic Shape shp Text box txt Timer tmr Vertical scrollbar vsb
Object Property Setting
Form Name frmHelloWorld BackColor Blue Caption Hello World Program
Command Button Name cmdExit Caption E&xit
Command Button Name cmdClear Caption Clear
Command Button Name cmdDisplay Caption Display Hello World
Text Box Name txtHelloWorld Alignment 2-Center FontName System FontSize 10 Multiline True
Option Explicit Private Sub cmdClear_Click() txtHelloWorld.Text = "" ' clear up display box End Sub
Private Sub cmdDisplay_Click() frmHelloWorld.BackColor = RGB(0, 255, 0)’Turn form green txtHelloWorld.Text = "Hello World!" End Sub
Private Sub cmdExit_Click() End End Sub
Operation
Implementation
Phase 1
Phase 2
Phase 4
Phase 3
Ground
Ground
or Voltage
or Voltage
Phase 1 Phase 2 Phase 3 Phase 4
+Stepper Rated Voltage Supply or GND line
Point A Point B Resistance Phase 1 Supply/GND line R Phase 1 Phase 2 2R Phase 2 Supply/GND line R Phase 2 Phase 3 Infinite Phase 1 Phase 3 Infinite Phase 3 Supply/GND line R Phase 3 Phase 4 2R Phase 4 Supply/GND line R