Las Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name:

Size: px
Start display at page:

Download "Las Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name:"

Transcription

1 Las Vegas, Nevada, December 3 6, 2002 Speaker Name: Kevin Vandecar Course Title: Introduction to Visual Basic Course ID: CP11-3 Session Overview: Introduction to Visual Basic programming is a beginning programming course. It will cover basic programming constructs and show you how to make efficient use of the Interactive Developer Environment (IDE) and other tools. We will cover topics pertaining to VB and touch on the area of ActiveX Automation to show how to use VB to drive other products such as AutoCAD, Inventor, and Autodesk Architectural Desktop.

2 VB What is it? Visual Basic What s the difference between VB and VBA? VBA IDE Form Designer Project Toolbox Properties Form Layout Components References Object Browser HELP VBA IDE 2 Visual Basic Code Editor Auto complete Syntax errors Navigating Book marks Splitter Automatic pop-up List box for properties, methods, constants, etc. 2

3 Lab VB IDE Create a simple form and explore the Visual Basic IDE characteristics. 1. Start Visual Basic From the New Project Dialog (that should display automatically), notice the different types of VB projects that can be created. 3. Choose Standard EXE 4. Display the Toolbox if it s not already displayed (from the View Menu pick Toolbox) 5. Select the CommandButton Object 6. Draw a button onto the default Form 7. Display the Properties Windows if it is not already displayed (from the View menu pick Properties Window) 8. Select the Form (not the button) by single clicking. Notice the Form properties in the Properties Window. 9. Change the Form Caption to Lab 01 (this changes the Window title) 10. Select the Button by single clicking it. Notice the the button properties in the Properties Window. 11. Change the caption to Click Me. 12. Double-Click the button. This will place you into the Code Editor and automatically create a Button handler for your button (more on this later). 13. Add the following code within the procedure: MsgBox "Hello VB World" 14. Click the Start Button from the Standard Toolbar, or from the Run menu click Start. 15. Click the Click Me button and you should have a pop-up Message Box dialog saying Hello VB World. 16. Click OK to dismiss this dialog, then dismiss the form window by clicking the X in the upper right corner. 17. Display the Project Explorer if it is not already displayed (from the View menu, select Project Explorer) 18. Right-Click on the Form1 item (you may need to expand the project tree branches) notice how you can easily switch between the code window and the form window. 19. Display the Form Layout window if it is not already displayed (from the View menu, select Form Layout) 20. Move the Form s default startup position, then run the program again to see how the startup position can be set. 21. Notice how moving the Form in the Form Layout Window changes the Top and Left properties of the form. 3

4 Programming structure VB language hierarchy Project Module Procedure» Statements Modules To Add a new module Click the insert button on the standard toolbar Right-click the project explorer Choose Insert-> Module Modules should contain: Declarations of variables, constants, and user-defined data types Compiler Options Sub Procedures, Functions, Events, Properties, or Classes Procedures Sub Function Classes Objects Can Contain both variables and functions Programming Structure Scope Public vs. Private Declarations Defines a named item Assignments Store a value in a variable Executable statements Program flow! Compiler options Tells compiler how to handle code Naming Rules must start with a letter no punctuation except for _ no spaces 255 characters max (40 for forms/controls) no VB keywords no duplicates within scope 4

5 variable names ignore case Conventions What about Application specific types/objects? Formatting Code Indenting Automatic indenting Changing tabs Blank lines Spaces Line continuation _ Comments Variables An ID for a storage location Declaration Where Scope Why When Static Multiples in same statement DO: Dim a As Integer, b As Integer NO: Dim a, b As Integer Data types Boolean Byte Integer 16 bit number Long 32 bit number Single Single precision floating point value (32-bit) Double double precision floating point value (64 bit) Data types Currency Decimal 112 bits / 14 bytes (huge!) Date Object VBA object reference String Variant - 22 bytes can be a huge storage overhead User-defined Const never changes 5

6 Lab 02 Program Structure Create a new Function of type Double which takes two double arguments. Return the multiplication of the two input values to the caller. Create a new sub procedure to call the function and pass two double values. Test subprocudure. Use msgbox to output returned answer. In all code follow naming convention rules. Also make sure code formatting is correct. Pay attention to how VB automatically formats code. 1. In the code you created for Lab 01, rename the caption for the Button to Program Structure. 2. Within the Code window add a new function by typing the following code immediately above the existing procedure (place the entire statement on a single line): Function Multiply(dblA As Double, dblb As Double) As Double 3. After you press enter, if the code was typed correctly, the End Function code will automatically be added for you. 4. Within the function block, add the following code: Multiply = dbla * dblb 5. By assigning the function name to the calculation, it acts like a return of a value to the caller (in many other languages you would simply return a * b). Your new function should now appear as follows: Function Multiply(dblA As Double, dblb As Double) As Double Multiply = dbla * dblb End Function 6. Now we need to call the function with some arguments. Withing the existing procedure (the button handler that has the MsgBox code), add the following variable declaration: Dim dblresult As Double 7. Now add code to actually call the function and receive the result: dblresult = Multiply(10, 5) 8. Finally output the result to the user by changing the old MsgBox call to be: MsgBox dblresult The Updated Procedure should now appear something like: 6

7 Private Sub Command1_Click() Dim dblresult As Double dblresult = Multiply(10, 5) MsgBox dblresult End Sub 9. Run the code and make sure you get the correct value. You can change the values to ensure the code is working. 7

8 Operators Precedence ^ - *,/ \ Mod +,- String Concatenation: & Comparison: =,<>,<,>,<=,>=,Like,Is Logical: Not, And, Or, Xor,Eqv,Imp Program Flow Conditional Branch If then Select Case Conditional Loops Do loop For Next For Each Next Bad Idea GoTo 8

9 Lab 03 Program Flow Write a function that accepts an integer and returns a color string. It should use If then elseif logic for 3 colors and handle unknown values. 1=red, 2=blue, 3=yellow. Write a Sub Procedure to call the function and print the return value in a msgbox. 1. Add a new button to your existing code. Change the caption for the button to be IF LOGIC. 2. Double click the button to create a new handler procedure. 3. Create a new function immediately above this new handler procedure by adding the following code: Function getcolor(intindex As Integer) As String If (intindex = 1) Then getcolor = "RED" ElseIf (inindex = 2) Then getcolor = "BLUE" ElseIf (intindex = 3) Then getcolor = "YELLOW" Else getcolor = "UNKNOWN" End If End Function 4. Add code in the procedure handler to test this new function. For example: Private Sub Command2_Click() MsgBox getcolor(1) MsgBox getcolor(3) MsgBox getcolor(10) End Sub 5. Test the code. 9

10 Write a new function that does the same as the function above, only use a select case conditional logic. Test with a new sub procedure. 1. Add a new button to your existing code. Change the caption for the button to be CASE LOGIC. 2. Double click the button to create a new handler procedure. 3. Create a new function immediately above this new handler procedure by adding the following code: Function getcolor2(intindex As Integer) As String Select Case intindex Case 1 getcolor2 = "RED" Case 2 getcolor2 = "BLUE" Case 3 getcolor2 = "YELLOW" Case Else getcolor2 = "UNKNOWN" End Select End Function 4. Add code in the procedure handler to test this new function. For example: Private Sub Command3_Click() MsgBox getcolor2(1) MsgBox getcolor2(3) MsgBox getcolor2(10) End Sub 5. Test the code. Write a procedure to exercise loop logic. 1. Add a new button to your existing code. Change the caption for the button to be LOOP LOGIC. 2. Double click the button to create a new handler procedure. 3. Add the following for-loop code: Dim i As Integer Dim intresult As Integer For i = 0 To 5 intresult = intresult + i Next MsgBox intresult 4. Test your code. Play with different values. Try one of the other loop structures (examples can be found in the help). 10

11 Arrays An Array is simply a variable that references multiple values through an indexing system Single Dimension Multiple Dimension Dynamic Collections A Collection is simply a variable that allows access to a set of values or objects Can store any type of value or object Must be created with New 11

12 Lab 04 Arrays and Collections Load a two dimensional array with doubles. The dimensions should be 10,3. Output the array values by using a nested for each statement. 1. Add a new button to your existing code. Change the caption for the button to be STATIC ARRAYS. 2. Double click the button to create a new handler procedure. 3. Add the following array code to populate the array: Dim dblpts(10, 3) As Double Dim i As Integer, j As Integer For i = 1 To 10 If i = 1 Then dblpts(i, 1) = 1.2 dblpts(i, 2) = 2.4 dblpts(i, 3) = 3.6 Else dblpts(i, 1) = 1.2 * dblpts(i - 1, 1) dblpts(i, 2) = 2.4 * dblpts(i - 1, 1) dblpts(i, 3) = 3.6 * dblpts(i - 1, 1) End If Next i 4. Add the following array code to access the array: For i = 1 To 10 For j = 1 To 3 Debug.Print i & "," & j & " " & dblpts(i, j) Next j Next i 5. Test the code. Notice how this code uses an if structure within a for-loop to populate the array. After the array is loaded, then we can access it by referencing a specific index within the array. This example also shows the use of the Debug.Print method which will output the values to the Immediate window rather than needing a MsgBox. This makes it easy to provide a lot of output without having to respond to a message box. Create a dynamic array and redimension it twice. Cut the end off and notice the loss of data! 1. Add a new button to your existing code. Change the caption for the button to be DYNAMIC ARRAYS. 2. Double click the button to create a new handler procedure. 12

13 3. Add the following array code to populate the array and then access the array with only three items: Debug.Print "Start Run" Dim arraytest() As String Dim i As Integer ReDim arraytest(3) For i = 1 To 3 arraytest(i) = "Number = " & i Next i For i = 1 To 3 Debug.Print arraytest(i) Next i 4. Add the following array code to resize the dynamic array to now hold six items, add some additional items, and then access the whole array again: ReDim Preserve arraytest(6) ' Must use Preserve! For i = 4 To 6 arraytest(i) = "Number = " & i Next i For i = 1 To 6 Debug.Print arraytest(i) Next i 5. Add the following array code to truncate the dynamic array to now hold only five items, and then try to access the array again (including the truncated item; test your code): ReDim Preserve arraytest(5) ' Looses last value For i = 1 To 6 'error is generated when we try and 'access the last value that was truncated! Debug.Print arraytest(i) Next i Debug.Print "End Run" 6. Fix the code so that it doesn t generate the error. 7. Test the Code again. 13

14 Built-in VB Functions, Statements, and Methods VBA as a language provides built-in functionality that can be easily used. Math Formatting Conditional Math Abs Function Atn Function Cos Function Formatting Allows value formatting based on region settings Format FormatNumber FormatDateTime FormatCurrency FormatPercent IIf Short form If statement Hex and Octal &O = Octal value follows &H = Hexadecimal value follows Conversion CBool,CByte,CCur,CDate,CDbl,CDec,CInt, CLng,CSng,CStr,CVar based on reginal settings Str based on US standards Val back to string Chr ASCII values to character Asc ASCII values from character Text Manipulation Filter Join Left Len Lcase LSet Ltrim Mid Replace Exp Function Fix Function Int Function 14

15 Lab 05 Built-ins Write a function to accept a low and high number. Use these numbers to find a random number in between and return the random number to calling sub procedure. 1. Add a new button to your existing code. Change the caption for the button to be BUILT-INS-TEST. 2. Double click the button to create a new handler procedure. 3. Add a new function to calculate the random number: Function funcrand(intupper As Integer, intlower As Integer) As Integer funcrand = Int((intUpper - intlower + 1) * Rnd + intlower) End Function 4. Add code in the button handler procedure to execute the function with a range of : MsgBox funcrand(50, 100) 5. Test the code. Note that we used two built-in functions to handle the calculation. The first was the Int function that wil remove the fractional part of a number. The second function Rnd, generates the random number. Write a simple sub procedure that exercises some date and time formatting functions. 1. Add a new button to your existing code. Change the caption for the button to be BUILT-INS- FORMATDATE. 2. Double click the button to create a new handler procedure. 3. Add the following code to format the raw date value: Debug.Print "Start Run" Dim dateval As Date dateval = #12/25/2001 1:58:24 AM# ' Santa's visit from last year Debug.Print Format(dateVal, "General Date") Debug.Print Format(dateVal, "Medium Date") Debug.Print Format(dateVal, "Short Date") Debug.Print FormatDateTime(dateVal, vblongtime) Debug.Print "End Run" 4. Test the code. Note that the formatting functions took a raw date value and was easily able to extract just portions that might be needed for certain tasks. 15

16 Write a simple sub procedure that exercises some various number formatting functions. 1. Add a new button to your existing code. Change the caption for the button to be BUILT-INS- FORMATNUMBER. 2. Double click the button to create a new handler procedure. 3. Add the following code to exercise number formatting: Debug.Print "Start Run" Dim flt As Single flt = Debug.Print Format(flt, "General Number") Debug.Print Format(flt, "Currency") Debug.Print Format(flt, "Fixed") Debug.Print Format(flt, "Percent") Debug.Print Format(flt, "Scientific") Debug.Print FormatNumber(flt, 1) Debug.Print FormatCurrency(flt, 2) Debug.Print "End Run" 4. Test the code. Write a simple sub procedure that exercises the IIf built-in function. 1. Add a new button to your existing code. Change the caption for the button to be BUILT-INS-IIF. 2. Double click the button to create a new handler procedure. 3. Add the following code to exercise IIf: Debug.Print IIf(Format(Now, "a/p") = "a", "AM", "PM") 4. Test the code. Note that we used three built-ins to determine and output whether the current time is AM or PM. The Now function returns the Date, the Format used in this manner returns whether it s a (for AM) or p (for PM). Then we use the IIf function to match the return value and Print either AM (when the value is a, or PM (when the value is p ). 16

17 UI -- Simple Interactions MsgBox InputBox UI -- Forms Forms and Controls are objects and must be programmed Plan the Form before hand and try to plan functionality up front. Use the Form Toolbox to design the form. Select the Control to add, then draw it on the form Double-Click the control to add a control handler Forms Controls Label TextBox ComboBox ListBox CheckBox OptionButton (Radio Button) ToggleButton Labels and Text Boxes Labels used mostly for labels to TextBoxes, but can also be handy for messages to the user, etc. TextBox (aka Edit Box) is used for entering alpha-numeric data ListBoxes ListBox ComboBox Buttons and Check Boxes Check Boxes work independently of each other Radio Buttons work together. CommandButtons trigger an action when pushed Tab Strip A TabStrip is a control that contains a collection of one or more tabs. Each Tab of a TabStrip is a separate object that users can select. Visually, a TabStrip also includes a client area that all the tabs in the TabStrip share. 17

18 MultiPage MultiPage = A MultiPage is a control that contains a collection of one or more pages. Each Page of a MultiPage is a form that contains its own controls, and as such, can have a unique layout. MultiPage vs. TabStrip? If you use a single layout for data, use a TabStrip and map each set of data to its own Tab. If you need several layouts for data, use a MultiPage and assign each layout to its own Page. Unlike a Page of a MultiPage, the client region of a TabStrip is not a separate form, but a portion of the form that contains the TabStrip. The border of a TabStrip defines a region of the form that you can associate with the tabs. When you place a control in the client region of a TabStrip, you are adding a control to the form that contains the TabStrip. Scroll Bar Control A ScrollBar is a stand-alone control you can place on a form. It is visually like the scroll bar you see in certain objects such as a ListBox or the drop-down portion of a ComboBox. However, unlike the scroll bars in these examples, the stand-alone ScrollBar is not an integral part of any other control. To use the ScrollBar to set or read the value of another control, you must write code for the ScrollBar's events and methods. For example, to use the ScrollBar to update the value of a TextBox, you can write code that reads the Value property of the ScrollBar and then sets the Value property of the TextBox. SpinButton Control Clicking a SpinButton changes only the value of the SpinButton. You can write code that uses the SpinButton to update the displayed value of another control. For example, you can use a SpinButton to change the month, the day, or the year shown on a date. To display a value updated by a SpinButton, you must assign the value of the SpinButton to the displayed portion of a control, such as the Caption property of a Label or the Text property of a TextBox. To create a horizontal or vertical SpinButton, drag the sizing handles of the SpinButton horizontally or vertically on the form. ActiveX Controls Tools, References Shows on the Form Designer Create like any other control Accessing Windows APIs from VB The Windows API procedures are available to most Windows applications. These procedures allow you to expand the capabilities of your application. 18

19 Lab 06 Forms We have already been working with forms and buttons, but now let s expand it a little more. We will start a new project with a new form. Then we will add two edit boxes and a button. The user will enter two numbers in the edit boxes and then when the button is pressed we will calculate the division of the two numbers and display the output in a static text control. First let s setup the form layout. 1. Save any changes to the existing project. 2. From the File Menu, choose New Project and select a standard EXE. 3. On the new form, add two TextBox controls, each with a Label control. (see the dialog image below for an example layout). 4. Change the caption on each label to be First Number and Second Number. 5. For the first TextBox, change its name property to be txtboxnumber1 and for the second TextBox, change its name property to be txtboxnumber2. 6. For each TextBox make its Text property contain Add a new button and change its name property to be btncalc. Make the caption value be Calculate. 8. Add a Label control and change its name to be lblresult and the Caption to read Result =. 9. At this point, the form layout should resemble this image: Now let s add some handling code to perform the calculation. 1. Double click the Calculate button to create the button handler procedure. 2. Add the following code to access the textbox values and store into variables: Dim dbl1 As Double Dim dbl2 As Double dbl1 = txtboxnumber1.text dbl2 = txtboxnumber2.text 3. Add the following code to perform the calculation and store the value into a new variable: Dim dblresult As Double dblresult = dbl1 * dbl2 19

20 4. Add the following code to display the result in the Result Label: lblresult.caption = "Result = " & dblresult 5. Test your code with different values. Note that this sample is very simple. In more complex problems, you will be accessing the controls from a variety of procedures. This is why it is important to name the controls adequately so that it doesn t get confusing between the time you design the layout and when you try accessing the controls on the form. Debugging Syntax errors are easy The VBA compiler will complain Runtime errors will be shown at runtime. Logic Errors are harder Use Break Points Lab 07 Debugging Now let s take a look at debugging concepts. Understanding debugging is essential to writing error free code. 1. Within the previous lab s button handler procedure (probably named btncalc_click() ), right-click on the following line of code: dblresult = dbl1 * dbl2 2. From this context menu, select Toggle, Breakpoint. 3. Run the code and press the Calculate button. The debugger will kick in and flip the code window forward. You can now step through the code line-by-line. 20

21 Object Oriented Programming An Object is simply a definition that contains the properties and action that the object can perform or handle. For Example and AutoCAD Circle is an Object It contains Properties and Methods that are dervied from parent objects (such as AcadEntity) and also things that are specific such as center point and radius Autodesk products provide interfaces to Objects through ActiveX Automation ActiveX Automation COM, OLE, and all other names MS comes up with! ActiveX uses COM to communicate Registry Autodesk ActiveX Automation Support 21

22 Lab 08 Active X Automation Finally, let s make the form we already created, add an AutoCAD entity through ActiveX Automation. First, we need a reference to the AutoCAD type library. 1. From the Project menu, select References. 2. Select AutoCAD 2000 Object Library. 3. Select OK 4. From the View menu, select Object Browser. 5. In the Project/Library pull-down list, select AutoCAD. 6. Browse the AutoCAD Type library. Now, we can add some code to deal with AutoCAD through ActiveX Automation (out-of-process) communication. If we were using VBA, then we would be using the same Active Automation interfaces, but in an in-process state. This code will use the calculation from the previous lab to create a circle at 0,0,0 with a radius of the calculated value. 1. Open the code window for the button handler procedure used in the previous lab. 2. At the end of the existing code, add the following code to get access to the AutoCAD application object: Dim acad As AcadApplication Set acad = GetObject(, "AutoCAD.Application") Note that this code assumes that AutoCAD is already running. 3. Add the code to setup a fixed center point for the circle: Dim ctrpnt(0 To 2) As Double ' Define the circle center as 0,0,0 ctrpnt(0) = 0#: ctrpnt(1) = 0#: ctrpnt(2) = 0# 4. Add the code to create the circle in Model Space and then to zoom extents: acad.activedocument.modelspace.addcircle ctrpnt, dblresult acad.zoomextents 5. Test the code. Make sure to startup AutoCAD before executing the code. Try different values. 22

Introduction... 1 Part I: Getting Started with Excel VBA Programming Part II: How VBA Works with Excel... 31

Introduction... 1 Part I: Getting Started with Excel VBA Programming Part II: How VBA Works with Excel... 31 Contents at a Glance Introduction... 1 Part I: Getting Started with Excel VBA Programming... 9 Chapter 1: What Is VBA?...11 Chapter 2: Jumping Right In...21 Part II: How VBA Works with Excel... 31 Chapter

More information

GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4

GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4 GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4 Subject Name VISUAL BASIC Sr.No Course content 1. 1. Introduction to Visual Basic 1.1. Programming Languages 1.1.1. Procedural,

More information

END-TERM EXAMINATION

END-TERM EXAMINATION (Please Write your Exam Roll No. immediately) END-TERM EXAMINATION DECEMBER 2006 Exam. Roll No... Exam Series code: 100274DEC06200274 Paper Code : MCA-207 Subject: Front End Design Tools Time: 3 Hours

More information

variables programming statements

variables programming statements 1 VB PROGRAMMERS GUIDE LESSON 1 File: VbGuideL1.doc Date Started: May 24, 2002 Last Update: Dec 27, 2002 ISBN: 0-9730824-9-6 Version: 0.0 INTRODUCTION TO VB PROGRAMMING VB stands for Visual Basic. Visual

More information

You will have mastered the material in this chapter when you can:

You will have mastered the material in this chapter when you can: CHAPTER 6 Loop Structures OBJECTIVES You will have mastered the material in this chapter when you can: Add a MenuStrip object Use the InputBox function Display data using the ListBox object Understand

More information

Start Visual Basic. Session 1. The User Interface Form (I/II) The Visual Basic Programming Environment. The Tool Box (I/II)

Start Visual Basic. Session 1. The User Interface Form (I/II) The Visual Basic Programming Environment. The Tool Box (I/II) Session 1 Start Visual Basic Use the Visual Basic programming environment Understand Essential Visual Basic menu commands and programming procedure Change Property setting Use Online Help and Exit Visual

More information

Corporate essentials

Corporate essentials Microsoft Office Excel 2016, Corporate essentials A comprehensive package for corporates and government organisations Knowledge Capital London transforming perfomance through learning MS OFFICE EXCEL 2016

More information

Visual Basic.NET. 1. Which language is not a true object-oriented programming language?

Visual Basic.NET. 1. Which language is not a true object-oriented programming language? Visual Basic.NET Objective Type Questions 1. Which language is not a true object-oriented programming language? a.) VB.NET b.) VB 6 c.) C++ d.) Java Answer: b 2. A GUI: a.) uses buttons, menus, and icons.

More information

Overview About KBasic

Overview About KBasic Overview About KBasic The following chapter has been used from Wikipedia entry about BASIC and is licensed under the GNU Free Documentation License. Table of Contents Object-Oriented...2 Event-Driven...2

More information

Copyright. Trademarks Attachmate Corporation. All rights reserved. USA Patents Pending. WRQ ReflectionVisual Basic User Guide

Copyright. Trademarks Attachmate Corporation. All rights reserved. USA Patents Pending. WRQ ReflectionVisual Basic User Guide PROGRAMMING WITH REFLECTION: VISUAL BASIC USER GUIDE WINDOWS XP WINDOWS 2000 WINDOWS SERVER 2003 WINDOWS 2000 SERVER WINDOWS TERMINAL SERVER CITRIX METAFRAME CITRIX METRAFRAME XP ENGLISH Copyright 1994-2006

More information

VISUAL BASIC 6.0 OVERVIEW

VISUAL BASIC 6.0 OVERVIEW VISUAL BASIC 6.0 OVERVIEW GENERAL CONCEPTS Visual Basic is a visual programming language. You create forms and controls by drawing on the screen rather than by coding as in traditional languages. Visual

More information

Phụ lục 2. Bởi: Khoa CNTT ĐHSP KT Hưng Yên. Returns the absolute value of a number.

Phụ lục 2. Bởi: Khoa CNTT ĐHSP KT Hưng Yên. Returns the absolute value of a number. Phụ lục 2 Bởi: Khoa CNTT ĐHSP KT Hưng Yên Language Element Abs Function Array Function Asc Function Atn Function CBool Function CByte Function CCur Function CDate Function CDbl Function Chr Function CInt

More information

A Complete Tutorial for Beginners LIEW VOON KIONG

A Complete Tutorial for Beginners LIEW VOON KIONG I A Complete Tutorial for Beginners LIEW VOON KIONG Disclaimer II Visual Basic 2008 Made Easy- A complete tutorial for beginners is an independent publication and is not affiliated with, nor has it been

More information

Answer: C. 7. In window we can write code A. Immediate window B. Locals window C. Code editor window D. None of these. Answer: C

Answer: C. 7. In window we can write code A. Immediate window B. Locals window C. Code editor window D. None of these. Answer: C 1. Visual Basic is a tool that allows you to develop application in A. Real time B. Graphical User Interface C. Menu Driven D. None Of These 2. IDE stands for.. A. Internet Development Environment B. Integrated

More information

Prentice Hall CBT Systems X In A Box IT Courses

Prentice Hall CBT Systems X In A Box IT Courses Prentice Hall CBT Systems X In A Box IT Courses We make it click Visual Basic 5 In A Box Gary Cornell and Dave Jezak Prentice Hall PTR Upper Saddle River, NJ 07458 http://www.phptr.com Part of the Prentice

More information

Agenda. First Example 24/09/2009 INTRODUCTION TO VBA PROGRAMMING. First Example. The world s simplest calculator...

Agenda. First Example 24/09/2009 INTRODUCTION TO VBA PROGRAMMING. First Example. The world s simplest calculator... INTRODUCTION TO VBA PROGRAMMING LESSON2 dario.bonino@polito.it Agenda First Example Simple Calculator First Example The world s simplest calculator... 1 Simple Calculator We want to design and implement

More information

PA R T. A ppendix. Appendix A VBA Statements and Function Reference

PA R T. A ppendix. Appendix A VBA Statements and Function Reference PA R T V A ppendix Appendix A VBA Statements and Reference A d Reference This appendix contains a complete listing of all Visual Basic for Applications (VBA) statements (Table A-1 ) and built-in functions

More information

Getting started 7. Setting properties 23

Getting started 7. Setting properties 23 Contents 1 2 3 Getting started 7 Introduction 8 Installing Visual Basic 10 Exploring the IDE 12 Starting a new project 14 Adding a visual control 16 Adding functional code 18 Saving projects 20 Reopening

More information

UNIT 1. Introduction to Microsoft.NET framework and Basics of VB.Net

UNIT 1. Introduction to Microsoft.NET framework and Basics of VB.Net UNIT 1 Introduction to Microsoft.NET framework and Basics of VB.Net 1 SYLLABUS 1.1 Overview of Microsoft.NET Framework 1.2 The.NET Framework components 1.3 The Common Language Runtime (CLR) Environment

More information

VBScript: Math Functions

VBScript: Math Functions C h a p t e r 3 VBScript: Math Functions In this chapter, you will learn how to use the following VBScript functions to World Class standards: 1. Writing Math Equations in VBScripts 2. Beginning a New

More information

Visual basic tutorial problems, developed by Dr. Clement,

Visual basic tutorial problems, developed by Dr. Clement, EXCEL Visual Basic Tutorial Problems (Version January 20, 2009) Dr. Prabhakar Clement Arthur H. Feagin Distinguished Chair Professor Department of Civil Engineering, Auburn University Home page: http://www.eng.auburn.edu/users/clemept/

More information

Getting started 7. Setting properties 23

Getting started 7. Setting properties 23 Contents 1 2 3 Getting started 7 Introducing Visual Basic 8 Installing Visual Studio 10 Exploring the IDE 12 Starting a new project 14 Adding a visual control 16 Adding functional code 18 Saving projects

More information

20. VB Programming Fundamentals Variables and Procedures

20. VB Programming Fundamentals Variables and Procedures 20. VB Programming Fundamentals Variables and Procedures 20.1 Variables and Constants VB, like other programming languages, uses variables for storing values. Variables have a name and a data type. Array

More information

ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration

ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 1 References & Info Chapra (Part 2 of ENGG1811 Text) Topic 21 (chapter

More information

( ) 1.,, Visual Basic,

( ) 1.,, Visual Basic, ( ) 1. Visual Basic 1 : ( 2012/2013) :. - : 4 : 12-14 10-12 2 http://www.institutzamatematika.com/index.ph p/kompjuterski_praktikum_2 3 2 / ( ) 4 90% 90% 10% 90%! 5 ? 6 "? : 7 # $? - ( 1= on 0= off ) -

More information

GUI Design and Event- Driven Programming

GUI Design and Event- Driven Programming 4349Book.fm Page 1 Friday, December 16, 2005 1:33 AM Part 1 GUI Design and Event- Driven Programming This Section: Chapter 1: Getting Started with Visual Basic 2005 Chapter 2: Visual Basic: The Language

More information

Introduction to Programming Using Java (98-388)

Introduction to Programming Using Java (98-388) Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;

More information

Visual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB

Visual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB Visual Programming 1. What is Visual Basic? Visual Basic is a powerful application development toolkit developed by John Kemeny and Thomas Kurtz. It is a Microsoft Windows Programming language. Visual

More information

PROGRAMMING LANGUAGE 2 (SPM3112) NOOR AZEAN ATAN MULTIMEDIA EDUCATIONAL DEPARTMENT UNIVERSITI TEKNOLOGI MALAYSIA

PROGRAMMING LANGUAGE 2 (SPM3112) NOOR AZEAN ATAN MULTIMEDIA EDUCATIONAL DEPARTMENT UNIVERSITI TEKNOLOGI MALAYSIA PROGRAMMING LANGUAGE 2 (SPM3112) INTRODUCTION TO VISUAL BASIC NOOR AZEAN ATAN MULTIMEDIA EDUCATIONAL DEPARTMENT UNIVERSITI TEKNOLOGI MALAYSIA Topics Visual Basic Components Basic Operation Screen Size

More information

Programming Language 2 (PL2)

Programming Language 2 (PL2) Programming Language 2 (PL2) 337.1.1 - Explain rules for constructing various variable types of language 337.1.2 Identify the use of arithmetical and logical operators 337.1.3 Explain the rules of language

More information

Writer Guide. Chapter 15 Using Forms in Writer

Writer Guide. Chapter 15 Using Forms in Writer Writer Guide Chapter 15 Using Forms in Writer Copyright This document is Copyright 2005 2010 by its contributors as listed below. You may distribute it and/or modify it under the terms of either the GNU

More information

Managing Content with AutoCAD DesignCenter

Managing Content with AutoCAD DesignCenter Managing Content with AutoCAD DesignCenter In This Chapter 14 This chapter introduces AutoCAD DesignCenter. You can now locate and organize drawing data and insert blocks, layers, external references,

More information

Corel Ventura 8 Introduction

Corel Ventura 8 Introduction Corel Ventura 8 Introduction Training Manual A! ANZAI 1998 Anzai! Inc. Corel Ventura 8 Introduction Table of Contents Section 1, Introduction...1 What Is Corel Ventura?...2 Course Objectives...3 How to

More information

Tech-Talk Using the PATROL Agent COM Server August 1999 Authored By: Eric Anderson

Tech-Talk Using the PATROL Agent COM Server August 1999 Authored By: Eric Anderson Tech-Talk Using the PATROL Agent COM Server August 1999 Authored By: Eric Anderson Introduction Among the many new features of PATROL version 3.3, is support for Microsoft s Component Object Model (COM).

More information

Drawing an Integrated Circuit Chip

Drawing an Integrated Circuit Chip Appendix C Drawing an Integrated Circuit Chip In this chapter, you will learn how to use the following VBA functions to World Class standards: Beginning a New Visual Basic Application Opening the Visual

More information

Contents. More Controls 51. Visual Basic 1. Introduction to. xiii. Modify the Project 30. Print the Project Documentation 35

Contents. More Controls 51. Visual Basic 1. Introduction to. xiii. Modify the Project 30. Print the Project Documentation 35 Contents Modify the Project 30 Introduction to Print the Project Documentation 35 Visual Basic 1 Sample Printout 36 Writing Windows Applications The Form Image 36 The Code 37 with Visual Basic 2 The Form

More information

Microsoft Visual Basic 2005 CHAPTER 6. Loop Structures

Microsoft Visual Basic 2005 CHAPTER 6. Loop Structures Microsoft Visual Basic 2005 CHAPTER 6 Loop Structures Objectives Add a MenuStrip object Use the InputBox function Display data using the ListBox object Understand the use of counters and accumulators Understand

More information

Using Visual Basic Studio 2008

Using Visual Basic Studio 2008 Using Visual Basic Studio 2008 Recall that object-oriented programming language is a programming language that allows the programmer to use objects to accomplish a program s goal. An object is anything

More information

SAULT COLLEGE OF APPLIED ARTS & TECHNOLOGY SAULT STE MARIE, ON COURSE OUTLINE

SAULT COLLEGE OF APPLIED ARTS & TECHNOLOGY SAULT STE MARIE, ON COURSE OUTLINE SAULT COLLEGE OF APPLIED ARTS & TECHNOLOGY SAULT STE MARIE, ON COURSE OUTLINE Course Title: Introduction to Visual Basic Code No.: Semester: Three Program: Computer Programming Author: Willem de Bruyne

More information

Disclaimer. Trademarks. Liability

Disclaimer. Trademarks. Liability Disclaimer II Visual Basic 2010 Made Easy- A complete tutorial for beginners is an independent publication and is not affiliated with, nor has it been authorized, sponsored, or otherwise approved by Microsoft

More information

Fundamentals. Fundamentals. Fundamentals. We build up instructions from three types of materials

Fundamentals. Fundamentals. Fundamentals. We build up instructions from three types of materials Fundamentals We build up instructions from three types of materials Constants Expressions Fundamentals Constants are just that, they are values that don t change as our macros are executing Fundamentals

More information

COPYRIGHTED MATERIAL. Part I: Getting Started. Chapter 1: IDE. Chapter 2: Controls in General. Chapter 3: Program and Module Structure

COPYRIGHTED MATERIAL. Part I: Getting Started. Chapter 1: IDE. Chapter 2: Controls in General. Chapter 3: Program and Module Structure Part I: Getting Started Chapter 1: IDE Chapter 2: Controls in General Chapter 3: Program and Module Structure Chapter 4: Data Types, Variables, and Constants Chapter 5: Operators Chapter 6: Subroutines

More information

2 USING VB.NET TO CREATE A FIRST SOLUTION

2 USING VB.NET TO CREATE A FIRST SOLUTION 25 2 USING VB.NET TO CREATE A FIRST SOLUTION LEARNING OBJECTIVES GETTING STARTED WITH VB.NET After reading this chapter, you will be able to: 1. Begin using Visual Studio.NET and then VB.NET. 2. Point

More information

Achieving Contentment with the AutoCAD Architecture Content Browser Douglas Bowers, AIA

Achieving Contentment with the AutoCAD Architecture Content Browser Douglas Bowers, AIA Achieving Contentment with the AutoCAD Architecture Content Browser Douglas Bowers, AIA AB110-3 If you have created AutoCAD Architecture (formerly ADT) object styles and want to know how to easily share

More information

Programming with Visual Basic for Applications

Programming with Visual Basic for Applications BONUS CHAPTER Programming with Visual Basic for Applications 3 IN THIS CHAPTER Understanding VBA and AutoCAD Writing VBA code Getting user input Creating dialog boxes Modifying objects Creating loops and

More information

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6)

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) Technology & Information Management Instructor: Michael Kremer, Ph.D. Database Program: Microsoft Access Series DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) AGENDA 3. Executing VBA

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Formatting a spreadsheet means changing the way it looks to make it neater and more attractive. Formatting changes can include modifying number styles, text size and colours. Many

More information

MICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION

MICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION MICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION Lesson 1 - Recording Macros Excel 2000: Level 5 (VBA Programming) Student Edition LESSON 1 - RECORDING MACROS... 4 Working with Visual Basic Applications...

More information

4D Write. User Reference Mac OS and Windows Versions. 4D Write D SA/4D, Inc. All Rights reserved.

4D Write. User Reference Mac OS and Windows Versions. 4D Write D SA/4D, Inc. All Rights reserved. 4D Write User Reference Mac OS and Windows Versions 4D Write 1999-2002 4D SA/4D, Inc. All Rights reserved. 4D Write User Reference Version 6.8 for Mac OS and Windows Copyright 1999 2002 4D SA/4D, Inc.

More information

BLM2031 Structured Programming. Zeyneb KURT

BLM2031 Structured Programming. Zeyneb KURT BLM2031 Structured Programming Zeyneb KURT 1 Contact Contact info office : D-219 e-mail zeynebkurt@gmail.com, zeyneb@ce.yildiz.edu.tr When to contact e-mail first, take an appointment What to expect help

More information

SQL Server. Management Studio. Chapter 3. In This Chapter. Management Studio. c Introduction to SQL Server

SQL Server. Management Studio. Chapter 3. In This Chapter. Management Studio. c Introduction to SQL Server Chapter 3 SQL Server Management Studio In This Chapter c Introduction to SQL Server Management Studio c Using SQL Server Management Studio with the Database Engine c Authoring Activities Using SQL Server

More information

Visual Basic distinguishes between a number of fundamental data types. Of these, the ones we will use most commonly are:

Visual Basic distinguishes between a number of fundamental data types. Of these, the ones we will use most commonly are: Chapter 3 4.2, Data Types, Arithmetic, Strings, Input Data Types Visual Basic distinguishes between a number of fundamental data types. Of these, the ones we will use most commonly are: Integer Long Double

More information

First Visual Basic Lab Paycheck-V1.0

First Visual Basic Lab Paycheck-V1.0 VISUAL BASIC LAB ASSIGNMENT #1 First Visual Basic Lab Paycheck-V1.0 Copyright 2013 Dan McElroy Paycheck-V1.0 The purpose of this lab assignment is to enter a Visual Basic project into Visual Studio and

More information

NEW CEIBO DEBUGGER. Menus and Commands

NEW CEIBO DEBUGGER. Menus and Commands NEW CEIBO DEBUGGER Menus and Commands Ceibo Debugger Menus and Commands D.1. Introduction CEIBO DEBUGGER is the latest software available from Ceibo and can be used with most of Ceibo emulators. You will

More information

d2vbaref.doc Page 1 of 22 05/11/02 14:21

d2vbaref.doc Page 1 of 22 05/11/02 14:21 Database Design 2 1. VBA or Macros?... 2 1.1 Advantages of VBA:... 2 1.2 When to use macros... 3 1.3 From here...... 3 2. A simple event procedure... 4 2.1 The code explained... 4 2.2 How does the error

More information

Installing and Using the Cisco Unity Express Script Editor

Installing and Using the Cisco Unity Express Script Editor Installing and Using the Cisco Unity Express Script Editor The Cisco Unity Express Script Editor allows you to create and validate scripts for handling calls that reach the auto attendant application.

More information

UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0

UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0 UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0 The VB6 IDE (Integrated Development Environment) is a very simple and fully featured IDE. If you start out programming in VB6 you may end up being too spoiled to

More information

3 TUTORIAL. In This Chapter. Figure 1-0. Table 1-0. Listing 1-0.

3 TUTORIAL. In This Chapter. Figure 1-0. Table 1-0. Listing 1-0. 3 TUTORIAL Figure 1-0. Table 1-0. Listing 1-0. In This Chapter This chapter contains the following topics: Overview on page 3-2 Exercise One: Building and Running a C Program on page 3-4 Exercise Two:

More information

Autodesk Inventor Design Exercise 2: F1 Team Challenge Car Developed by Tim Varner Synergis Technologies

Autodesk Inventor Design Exercise 2: F1 Team Challenge Car Developed by Tim Varner Synergis Technologies Autodesk Inventor Design Exercise 2: F1 Team Challenge Car Developed by Tim Varner Synergis Technologies Tim Varner - 2004 The Inventor User Interface Command Panel Lists the commands that are currently

More information

Ms Excel Dashboards & VBA

Ms Excel Dashboards & VBA Ms Excel Dashboards & VBA 32 hours, 4 sessions, 8 hours each Day 1 Formatting Conditional Formatting: Beyond Simple Conditional Formats Data Validation: Extended Uses of Data Validation working with Validation

More information

A Fast Review of C Essentials Part I

A Fast Review of C Essentials Part I A Fast Review of C Essentials Part I Structural Programming by Z. Cihan TAYSI Outline Program development C Essentials Functions Variables & constants Names Formatting Comments Preprocessor Data types

More information

Mach4 CNC Controller Screen Editing Guide Version 1.0

Mach4 CNC Controller Screen Editing Guide Version 1.0 Mach4 CNC Controller Screen Editing Guide Version 1.0 1 Copyright 2014 Newfangled Solutions, Artsoft USA, All Rights Reserved The following are registered trademarks of Microsoft Corporation: Microsoft,

More information

Introduction to Computer Use II

Introduction to Computer Use II Winter 2005 (Section M) Topic B: Variables, Data Types and Expressions Wednesday, January 18 2006 COSC 1530, Winter 2006, Overview (1): Before We Begin Some administrative details Some questions to consider

More information

6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples:

6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples: VBA program units: Subroutines and Functions Subs: a chunk of VBA code that can be executed by running it from Excel, from the VBE, or by being called by another VBA subprogram can be created with the

More information

Expressions and Data Types CSC 121 Spring 2015 Howard Rosenthal

Expressions and Data Types CSC 121 Spring 2015 Howard Rosenthal Expressions and Data Types CSC 121 Spring 2015 Howard Rosenthal Lesson Goals Understand the basic constructs of a Java Program Understand how to use basic identifiers Understand simple Java data types

More information

Getting Started Manual. SmartList To Go

Getting Started Manual. SmartList To Go Getting Started Manual SmartList To Go Table of contents Installing SmartList To Go 3 Launching SmartList To Go on the handheld 4 SmartList To Go toolbar 4 Creating a SmartList 5 The Field Editor Screen

More information

CS130/230 Lecture 12 Advanced Forms and Visual Basic for Applications

CS130/230 Lecture 12 Advanced Forms and Visual Basic for Applications CS130/230 Lecture 12 Advanced Forms and Visual Basic for Applications Friday, January 23, 2004 We are going to continue using the vending machine example to illustrate some more of Access properties. Advanced

More information

Writer Guide. Chapter 15 Using Forms in Writer

Writer Guide. Chapter 15 Using Forms in Writer Writer Guide Chapter 15 Using Forms in Writer Copyright This document is Copyright 2011 2012 by its contributors as listed below. You may distribute it and/or modify it under the terms of either the GNU

More information

Introduction VBA for AutoCAD (Mini Guide)

Introduction VBA for AutoCAD (Mini Guide) Introduction VBA for AutoCAD (Mini Guide) This course covers these areas: 1. The AutoCAD VBA Environment 2. Working with the AutoCAD VBA Environment 3. Automating other Applications from AutoCAD Contact

More information

This chapter is intended to take you through the basic steps of using the Visual Basic

This chapter is intended to take you through the basic steps of using the Visual Basic CHAPTER 1 The Basics This chapter is intended to take you through the basic steps of using the Visual Basic Editor window and writing a simple piece of VBA code. It will show you how to use the Visual

More information

Adding Dynamics. Introduction

Adding Dynamics. Introduction M-Graphic s User s Manual 11-1 Chapter 11 Adding Dynamics Introduction This chapter explains how to make single or multiple dynamic connections from display objects to points from OPC data servers. This

More information

CHAPTER 1 COPYRIGHTED MATERIAL. Getting to Know AutoCAD. Opening a new drawing. Getting familiar with the AutoCAD and AutoCAD LT Graphics windows

CHAPTER 1 COPYRIGHTED MATERIAL. Getting to Know AutoCAD. Opening a new drawing. Getting familiar with the AutoCAD and AutoCAD LT Graphics windows CHAPTER 1 Getting to Know AutoCAD Opening a new drawing Getting familiar with the AutoCAD and AutoCAD LT Graphics windows Modifying the display Displaying and arranging toolbars COPYRIGHTED MATERIAL 2

More information

Text box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box.

Text box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box. Visual Basic Concepts Hello, Visual Basic See Also There are three main steps to creating an application in Visual Basic: 1. Create the interface. 2. Set properties. 3. Write code. To see how this is done,

More information

VB Script Reference. Contents

VB Script Reference. Contents VB Script Reference Contents Exploring the VB Script Language Altium Designer and Borland Delphi Run Time Libraries Server Processes VB Script Source Files PRJSCR, VBS and DFM files About VB Script Examples

More information

The Item_Master_addin.xlam is an Excel add-in file used to provide additional features to assist during plan development.

The Item_Master_addin.xlam is an Excel add-in file used to provide additional features to assist during plan development. Name: Tested Excel Version: Compatible Excel Version: Item_Master_addin.xlam Microsoft Excel 2013, 32bit version Microsoft Excel 2007 and up (32bit and 64 bit versions) Description The Item_Master_addin.xlam

More information

VBA: Hands-On Introduction to VBA Programming

VBA: Hands-On Introduction to VBA Programming 11/28/2005-10:00 am - 11:30 am Room:Osprey 1 [Lab] (Swan) Walt Disney World Swan and Dolphin Resort Orlando, Florida VBA: Hands-On Introduction to VBA Programming Jerry Winters - VB CAD and Phil Kreiker

More information

Chapters are PDF documents posted online at the book s Companion Website (located at

Chapters are PDF documents posted online at the book s Companion Website (located at vbhtp6printonlytoc.fm Page ix Wednesday, February 27, 2013 11:59 AM Chapters 16 31 are PDF documents posted online at the book s Companion Website (located at www.pearsonhighered.com/deitel/). Preface

More information

After completing this appendix, you will be able to:

After completing this appendix, you will be able to: 1418835463_AppendixA.qxd 5/22/06 02:31 PM Page 879 A P P E N D I X A A DEBUGGING After completing this appendix, you will be able to: Describe the types of programming errors Trace statement execution

More information

Course Text. Course Description. Course Objectives. StraighterLine Introduction to Programming in C++

Course Text. Course Description. Course Objectives. StraighterLine Introduction to Programming in C++ Introduction to Programming in C++ Course Text Programming in C++, Zyante, Fall 2013 edition. Course book provided along with the course. Course Description This course introduces programming in C++ and

More information

Introduction to Data Entry and Data Types

Introduction to Data Entry and Data Types 212 Chapter 4 Variables and Arithmetic Operations STEP 1 With the Toolbox visible (see Figure 4-21), click the Toolbox Close button. The Toolbox closes and the work area expands in size.to reshow the Toolbox

More information

Lotus Notes Application design & programming. By Ajith Thulaseedharan Lotus Notes developer

Lotus Notes Application design & programming. By Ajith Thulaseedharan Lotus Notes developer Lotus Notes Application design & programming By Ajith Thulaseedharan Lotus Notes developer A Notes application Is a.nsf(notes Storage Facility) database Is a structured flat file Contains notes data &

More information

KEYWORDS DDE GETOBJECT PATHNAME CLASS VB EDITOR WITHEVENTS HMI 1.0 TYPE LIBRARY HMI.TAG

KEYWORDS DDE GETOBJECT PATHNAME CLASS VB EDITOR WITHEVENTS HMI 1.0 TYPE LIBRARY HMI.TAG Document Number: IX_APP00113 File Name: SpreadsheetLinking.doc Date: January 22, 2003 Product: InteractX Designer Application Note Associated Project: GetObjectDemo KEYWORDS DDE GETOBJECT PATHNAME CLASS

More information

BASIC COMPUTATION. public static void main(string [] args) Fundamentals of Computer Science I

BASIC COMPUTATION. public static void main(string [] args) Fundamentals of Computer Science I BASIC COMPUTATION x public static void main(string [] args) Fundamentals of Computer Science I Outline Using Eclipse Data Types Variables Primitive and Class Data Types Expressions Declaration Assignment

More information

Debugging Code in Access 2002

Debugging Code in Access 2002 0672321025 AppA 10/24/01 3:53 PM Page 1 Debugging Code in Access 2002 APPENDIX A IN THIS APPENDIX Setting the Correct Module Options for Maximum Debugging Power 2 Using the Immediate Window 6 Stopping

More information

UNIT 2 USING VB TO EXPAND OUR KNOWLEDGE OF PROGRAMMING

UNIT 2 USING VB TO EXPAND OUR KNOWLEDGE OF PROGRAMMING UNIT 2 USING VB TO EXPAND OUR KNOWLEDGE OF PROGRAMMING UNIT 2 USING VB TO EXPAND OUR KNOWLEDGE OF PROGRAMMING... 1 IMPORTANT PROGRAMMING TERMINOLOGY AND CONCEPTS... 2 Program... 2 Programming Language...

More information

CST242 Windows Forms with C# Page 1

CST242 Windows Forms with C# Page 1 CST242 Windows Forms with C# Page 1 1 2 4 5 6 7 9 10 Windows Forms with C# CST242 Visual C# Windows Forms Applications A user interface that is designed for running Windows-based Desktop applications A

More information

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming Intro to Programming Unit 7 Intro to Programming 1 What is Programming? 1. Programming Languages 2. Markup vs. Programming 1. Introduction 2. Print Statement 3. Strings 4. Types and Values 5. Math Externals

More information

Upgrading Applications

Upgrading Applications C0561587x.fm Page 77 Thursday, November 15, 2001 2:37 PM Part II Upgrading Applications 5 Your First Upgrade 79 6 Common Tasks in Visual Basic.NET 101 7 Upgrading Wizard Ins and Outs 117 8 Errors, Warnings,

More information

VBA Collections A Group of Similar Objects that Share Common Properties, Methods and

VBA Collections A Group of Similar Objects that Share Common Properties, Methods and VBA AND MACROS VBA is a major division of the stand-alone Visual Basic programming language. It is integrated into Microsoft Office applications. It is the macro language of Microsoft Office Suite. Previously

More information

17. Introduction to Visual Basic Programming

17. Introduction to Visual Basic Programming 17. Introduction to Visual Basic Programming Visual Basic (VB) is the fastest and easiest way to create applications for MS Windows. Whether you are an experienced professional or brand new to Windows

More information

To get started with Visual Basic 2005, I recommend that you jump right in

To get started with Visual Basic 2005, I recommend that you jump right in In This Chapter Chapter 1 Wading into Visual Basic Seeing where VB fits in with.net Writing your first Visual Basic 2005 program Exploiting the newfound power of VB To get started with Visual Basic 2005,

More information

Customizing Autodesk Inventor : A Beginner's Guide to the API

Customizing Autodesk Inventor : A Beginner's Guide to the API December 2-5, 2003 MGM Grand Hotel Las Vegas Customizing Autodesk Inventor : A Beginner's Guide to the API Course ID: MA31-4 Speaker Name: Brian Ekins Course Outline: This class is an introduction to using

More information

Name EGR 2131 Lab #6 Number Representation and Arithmetic Circuits

Name EGR 2131 Lab #6 Number Representation and Arithmetic Circuits Name EGR 2131 Lab #6 Number Representation and Arithmetic Circuits Equipment and Components Quartus software and Altera DE2-115 board PART 1: Number Representation in Microsoft Calculator. First, let s

More information

Higher Computing Science Software Design and Development - Programming Summary Notes

Higher Computing Science Software Design and Development - Programming Summary Notes Higher Computing Science Software Design and Development - Programming Summary Notes Design notations A design notation is the method we use to write down our program design. Pseudocode is written using

More information

Visual Studio.NET. Although it is possible to program.net using only the command OVERVIEW OF VISUAL STUDIO.NET

Visual Studio.NET. Although it is possible to program.net using only the command OVERVIEW OF VISUAL STUDIO.NET Chapter. 03 9/17/01 6:08 PM Page 35 Visual Studio.NET T H R E E Although it is possible to program.net using only the command line compiler, it is much easier and more enjoyable to use Visual Studio.NET.

More information

MS Excel VBA Class Goals

MS Excel VBA Class Goals MS Excel VBA 2013 Class Overview: Microsoft excel VBA training course is for those responsible for very large and variable amounts of data, or teams, who want to learn how to program features and functions

More information

Chapter 2.4: Common facilities of procedural languages

Chapter 2.4: Common facilities of procedural languages Chapter 2.4: Common facilities of procedural languages 2.4 (a) Understand and use assignment statements. Assignment An assignment is an instruction in a program that places a value into a specified variable.

More information

Programming. C++ Basics

Programming. C++ Basics Programming C++ Basics Introduction to C++ C is a programming language developed in the 1970s with the UNIX operating system C programs are efficient and portable across different hardware platforms C++

More information

Getting started 7. Writing macros 23

Getting started 7. Writing macros 23 Contents 1 2 3 Getting started 7 Introducing Excel VBA 8 Recording a macro 10 Viewing macro code 12 Testing a macro 14 Editing macro code 15 Referencing relatives 16 Saving macros 18 Trusting macros 20

More information

Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio

Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio ECE2049 Embedded Computing in Engineering Design Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio In this lab, you will be introduced to the Code Composer Studio

More information