( ) 1.,, Visual Basic,

Size: px
Start display at page:

Download "( ) 1.,, Visual Basic,"

Transcription

1 ( ) 1. Visual Basic 1

2 : ( 2012/2013) :. - : 4 :

3 p/kompjuterski_praktikum_2 3

4 2 / ( ) 4

5 90% 90% 10% 90%! 5

6 ? 6

7 "? : 7

8 # $? - ( 1= on 0= off ) - low level ( Assembler BAL ) - high level ( Pascal FORTRAN COBOL C C++ Prolog Java Visual Basic ) 8

9 # $? 9

10 Visual Basic "visual" "basic" BASIC (Beginner's All-purpose Symbolic Instruction Code) Visual Basic (VB) Windows 10

11 Visual Basic VB Windows ( $ ) VB VB- ( $) ( 1. VB- : ) 11

12 % (! ) (! - ) 12

13 % ( ) ( (bug) ) ( ) 13

14 $ $ $ (indentation) ( 1.) 14

15 " Visual Basic BASIC Windows 15

16 " + Visual Basic + = ( ) 16

17 ( ) 2. 1

18

19 :

20

21 !.! - ( - Halting Problem: ".) - ( - Traveling Salesmen Problem) - ( - K- server problem) 5

22 # ( ) ( ) ( ) 6

23 # ( ) ( ) ( ) ( ) 7

24 $ ( ) ( / ) (loops) ( ) 8

25 % & - - ( ) - / - ( ) - ( - ) - ( 1. P V - ) 9

26 ' - - ( 1. P V - ) 10

27 $ ( ) ( ' ) ( ) 11

28 ( ) 3. Visual Basic 1

29 ... e - 2

30 Visual Basic : - - (Strings) : - ( Const constname =expression expression ) - ( ) ( Form_Activate) 3

31 ("_") - Visual Basic ( brojnacifri brojnacifri ) 4

32 - ( "= ) 1) var = num ( var num. =3) 2) var = str ( var str. ime="ana") 3) var2 = var1 ( var2 var1. a=3:b=a b 3) 4) var = expression ( expression var. a=3:b=a^2 b 9) ( Form_Activate) 5

33 Dim var As type var type General Declarations (! ) Variant 6

34 " (type) Integer Long Single # # Double # # String ( ) Boolean - True False Currency Date Byte Variant - 7

35 $ + ( ) - ( ) * ( ) / ( ) ^ ( ) \ ( ) Mod ( ) & ( ) (" Immediate Window) 8

36 ( ) - ^ * / - \ - Mod (" Immediate Window) 9

37 % = ( ) Not ( ) <> () And () < () Or () > ( ) Xor (...) <= ( ) >= ( ) (" Immediate Window) 10

38 & Visual Basic! (builtin functions). '!. (.. & Visual Basic: Abs Atn Cos Exp Fix Int Log Rnd Round Sgn Sin Sqr Tan (" Immediate Window) 11

39 ( / InputBox ( ) var=inputbox(prompt) var=val(inputbox(prompt)) Print object.print [outputlist] - Spc(n) Tab(n) () ; () MsgBox ( ) MsgBox(prompt) (" Print Form_Activate) 12

40 ) If Then - If cond Then statement1 Else statement2 - If cond1 Then statements1 ElseIf cond2 Then statements2 ElseIf cond(n) Then statements(n) Else statements(n+1) End If - If cond1 Then If cond2 Then statements End If End If If cond1 And cond2 Then statements End If (" Form_Activate) 13

41 ) Select Case - If Then - (selector) - (valuelist)! ( To 5 Is <= 5) Select Case selector Case valuelist1 statements1 Case valuelist(n) statements(n) Case Else statements(n+1) End Select 14

42 *For Next - For counter=start To end [Step step] statements Next counter -(counter) start end step ( ) - - For Next - Exit For 15

43 *Do Loop - - Do Loop 1) Do While cond statements Loop 2) Do statements Loop While cond 3) Do Until cond statements Loop 4) Do statements Loop Until cond - Exit Do - Do Loop - Ctrl+Break Break ( 3. n.) 16

44 + ( smart editor ). Primt 2ka=2 a=b+ (run-time errors) -. varinv=1/var ( var 0) ( ). av = min + max / 2 On Error Go To line 17

45 '... Visual Basic : - (Strings) - (Arrays) : - Visual Basic! : - Visual Basic - Visual Basic 18

46 ( ) 4. (Strings) 1

47 ... Visual Basic (Strings) - (Const constname =expression) - (Dim var As type) String ( ) (&) 2

48 () ( ) - : (&) ("") - 0 3

49 ASCII (0-255) Asc ( ASCII ) Chr ( ASCII ) ASCII : ( 0-9) ( ) () 32 ( ) 34 () = < > <= >= <> ( ASCII.) ( ASCII Immediate Window) 4

50 - Left Mid Right ( ) - UCase LCase ( ) - Trim LTrim RTrim ( ) - String ( ) - Str ( ) - Format ( ) 5

51 - Len () - InStr ( ) ( Immediate Window) ( 4..) ( 5..) 6

52 ( ) 5. (Arrays) 1

53 ... ( ) Dim var As type (type = Integer Long Single Double String Boolean Currency Date Byte Variant) ("_") 2

54 - : : Dim arrayname(n) As vartype Dim arrayname(m To n) As varitype ( m<=n) 3

55 -. ( ) Dim(3) As Integer Integer A(0) A(1) A(2) A(3) Dim(1 To 3) As Integer Integer A(1) A(2) A(3). ( ) Dim B(1 To 3 2 To 4) As Integer Integer B(12) B(13) B(14)B(22) B(23) B(24) B(32) B(33) B(34) 4

56 - ( ): 1) : Dim arrayname() As vartype 2) : ReDim arrayname(m1 To n1 mk To nk) As vartype 3) : ReDim Preserve arrayname(m1 To n1 mk To nk) As vartype 5

57 ( ) ( ) 6

58 n. 9. m n 2 A = aij i = 1 j= 1 1/2 7

59 ( ) 6. Visual Basic 1

60 Visual Basic Visual Basic ( ) ( ) o... 2

61 Visual Basic (Toolbox). ( ) : - (Text Box) - - (Label) - -(Command Button) - - (Picture Box) -. 3

62 (Properties Window) ()! - TextBox : Text Font Enabled Visible - Label : Caption Font Alignment Visible - Command Button : Caption Font Enabled Visible - Picture Box : Picture Font Visible Visual Basic : (interface).. 4

63 " Text1 Text2 Label1 Label2 Command1 Command2 Picture1 Pictire2 " Name #. - Text Box txt txtprezime - Label lbl lblnaslov - Command Button cmd cmdpresmetaj - Pictute Box pic picprikaz - Form frm frmvlez 5

64 ! Visual Basic Visual Basic.!. $. $ Visual Basic o: - e (interface): - - %. 6

65 Visual Basic ( ). objectname.property = setting! txtprezime.text = "" cmdpresmetaj.visible = True - objectname.method [display]! txtprezime.setfocus picprikaz.print "Rezultatite se:" 7

66 Visual Basic. Private Sub objectname_event() End Sub statement(s) (& Private - Public Sub) 8

67 Visual Basic ( ) ( ). & Visual Basic : - Sub - Function. $. Sub %. Private Sub ProcedureName () statement(s) End Sub 9

68 Visual Basic Sub Call ProcedureName Sub. ' Sub Sub. & Sub General Declarations (VB- ) (VB- % ). 10

69 Visual Basic Functon. Private Function FunctionName(var1 As Type1 var2 As Type2 ) As datatype statement(s) FunctionName = expression End Function Function. Function. 11

70 Visual Basic Function Sub.. & Function Sub. Function Function Sub. ( 10..) ( 11..) 12

71 ( ) 7. Visual Basic ( ) 1

72 Visual Basic (Line PSet Circle) (: CurrentX CurrentY : Print TextHeight TextWidth) 2

73 (default) (00) x- y-. ScaleWidth ScaleHeight ScaleLeft ScaleTop. Picture1.ScaleWidth = 30 Picture1.ScaleHeight = - 30 Picture1.ScaleTop = 15 Picture1.ScaleLeft = Picture1 x- a y- ( -). 3

74 Scale : Picture1.Scale (-15 15) - (15-15) Picture1.Scale (a d) - (b c) a b x- c d y-. 4

75 (x1y1) (x2y2) Line Picture1.Line (x1y1) - (x2y2) (xy) PSet Picture1.PSet (xy)!" (xy) r Circle Picture1.Circle (xy) r 5

76 " # : Picture1.Line (x1y1) - (x2y2) color B[F] # (22) (64): Picture1.Line (22) - (64) RGB(25500) BF Picture1.PSet (xy) color (-32): Picture1.PSet (-32) RGB(02550) Picture1.Circle (xy) r color start end aspect (00) =2.5 b=5 Picture1.Circle (00) 5 RGB(00255) 1/2 # " " (00) 5 Pi/6 Pi/3 Picture1.Circle (00) 5 RGB(00255) -Pi/6 - Pi/3 ( Pi Pi= ) 6

77 o CurrentX CurrentY " (CurrentX CurrentY) Print ( ). Picture1.CurrentX = 13 Picture1.CurrentY = 1 Picture1.Print "y=0" TextHeightTextWidth. Picture1.CurrentX = 13 - Picture1.TextWidth("y=0") / 2 Picture1.CurrentY = 1 - Picture1.TextHeight("y=0") / 2 Picture1.Print "y=0 ( 12..) ( 13. ( ).) 7

78 ( ) 8. Visual Basic () 1

79 K Dim var As String * n [Private Public] Type TypeName TypeElement1 As Type1 TypeElement2 As Type2 End Type. ( Student). 2

80 (Random Access Files) (Records). ( ) Open "filespec" For Random As #n Len = Len(record) 3

81 (Random Access Files) record br n Put #n br record br n record Get #n br record! n LOF(n) numberofrecords = LOF(n) / Len(record) Close #n ( 14. ( -).) 4

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

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

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

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

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

Las Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name: 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

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

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

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

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

Active Planner. How to Create and Use Database Query Formulas

Active Planner. How to Create and Use Database Query Formulas Active Planner How to Create and Use Database Query Formulas Table of Contents Introduction... 1 Database Query Part 1 - The Basics... 2 Database Query Part 2 Excel as the Data source... 12 Database Query

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

Review. October 20, 2006

Review. October 20, 2006 Review October 20, 2006 1 A Gentle Introduction to Programming A Program (aka project, application, solution) At a very general level there are 3 steps to program development Determine output Determine

More information

String Functions on Excel Macros

String Functions on Excel Macros String Functions on Excel Macros The word "string" is used to described the combination of one or more characters in an orderly manner. In excel vba, variables can be declared as String or the Variant

More information

Programming Concepts and Skills. Arrays continued and Functions

Programming Concepts and Skills. Arrays continued and Functions Programming Concepts and Skills Arrays continued and Functions Fixed-Size vs. Dynamic Arrays A fixed-size array has a limited number of spots you can place information in. Dim strcdrack(0 to 2) As String

More information

Quick Reference Guide

Quick Reference Guide SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD mikroelektronika Development tools - Books - Compilers Quick Reference Quick Reference Guide with EXAMPLES for Basic language This reference guide

More information

SWITCH(DatePart("w",DateOfYear) IN(1,7),"Weekend",DatePart("w",DateOfYear) IN(2,3,4,5,6),"Weekday") AS DayType,

SWITCH(DatePart(w,DateOfYear) IN(1,7),Weekend,DatePart(w,DateOfYear) IN(2,3,4,5,6),Weekday) AS DayType, SeQueL 4 Queries and their Hidden Functions! by Clark Anderson A friend recently exclaimed Can you really use this function in SQL! In this article of my series I will explore and demonstrate many of the

More information

Birotică Profesională. Cursul 12

Birotică Profesională. Cursul 12 Birotică Profesională Cursul 12 Sumar Visual Basic for Applications (VBA) Tipuri de date Structuri de control Funcţii si proceduri Obiecte si colecţii VBA Mediu de programare destinat in special realizării

More information

VBSCRIPT - INTERVIEW QUESTIONS

VBSCRIPT - INTERVIEW QUESTIONS VBSCRIPT - INTERVIEW QUESTIONS http://www.tutorialspoint.com/vbscript/vbscript_interview_questions.htm Copyright tutorialspoint.com Dear readers, these VBScript Interview Questions have been designed specially

More information

Lecture Using ListBox and ComboBox Controls In Visual Basic 6: list box

Lecture Using ListBox and ComboBox Controls In Visual Basic 6: list box Lecture 10+11+12 7- Using ListBox and ComboBox Controls In 6: list box A list box displays a list of items from which the user can select one or more items. If the number of items exceeds the number that

More information

MATHEMATICAL / NUMERICAL FUNCTIONS

MATHEMATICAL / NUMERICAL FUNCTIONS MATHEMATICAL / NUMERICAL FUNCTIONS Function Definition Syntax Example ABS (Absolute value) ASC It returns the absolute value of a number, turning a negative to a positive (e.g. - 4 to 4) It returns the

More information

Sub Programs. To Solve a Problem, First Make It Simpler

Sub Programs. To Solve a Problem, First Make It Simpler Sub Programs To Solve a Problem, First Make It Simpler Top Down Design Top Down Design Start with overall goal. Break Goal into Sub Goals Break Sub Goals into Sub Sub Goals Until the Sub-Sub Sub-Sub Sub-Sub

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

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

Language Fundamentals

Language Fundamentals Language Fundamentals VBA Concepts Sept. 2013 CEE 3804 Faculty Language Fundamentals 1. Statements 2. Data Types 3. Variables and Constants 4. Functions 5. Subroutines Data Types 1. Numeric Integer Long

More information

520 Principles of Programming Languages. Arithmetic. Variable Declarations. 19: Pascal

520 Principles of Programming Languages. Arithmetic. Variable Declarations. 19: Pascal Structure of a Pascal Program 520 Principles of Programming Languages 19: Pascal Christian Collberg collberg@cs.arizona.edu Department of Computer Science University of Arizona PROGRAM Name (list of files);

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

Function Exit Function End Function bold End Function Exit Function

Function Exit Function End Function bold End Function Exit Function The UDF syntax: Function name [(arguments) [As type] ] [As type] [statements] [name = expression] [Exit Function] [statements] [name = expression] - name the name of the function - arguments a list of

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

Table of Contents. PREFACE... vii CONVENTIONS... vii HOW TO USE THIS MANUAL... vii Further Information...viii

Table of Contents. PREFACE... vii CONVENTIONS... vii HOW TO USE THIS MANUAL... vii Further Information...viii Table of Contents PREFACE... vii CONVENTIONS... vii HOW TO USE THIS MANUAL... vii Further Information...viii USING BASIC-52... 1 BASIC-52 PINOUT AND FEATURES... 1 8052AH and 80C52 DIFFERENCES... 1 DEFINITION

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

Programming with visual Basic:

Programming with visual Basic: Programming with visual Basic: 1-Introdution to Visual Basics 2-Forms and Control tools. 3-Project explorer, properties and events. 4-make project, save it and its applications. 5- Files projects and exercises.

More information

MODULE 7: VARIABLES & STRINGS

MODULE 7: VARIABLES & STRINGS MODULE 7: VARIABLES & STRINGS On completion of this module you will be able to work with and manipulate data, both numerical and text, found within single value holders. You will also be able to manipulate

More information

Language Fundamental of VB.NET Part 1. Heng Sovannarith

Language Fundamental of VB.NET Part 1. Heng Sovannarith Language Fundamental of VB.NET Part 1 Heng Sovannarith heng_sovannarith@yahoo.com Variables Declaring Variables Variables are named storage areas inside computer memory where a program places data during

More information

ENGG1811 Computing for Engineers Week 7 Iteration; Sequential Algorithms; Strings and Built-in Functions

ENGG1811 Computing for Engineers Week 7 Iteration; Sequential Algorithms; Strings and Built-in Functions ENGG1811 Computing for Engineers Week 7 Iteration; Sequential Algorithms; Strings and Built-in Functions ENGG1811 UNSW, CRICOS Provider No: 00098G1 W7 slide 1 References Chapra (Part 2 of ENGG1811 Text)

More information

Programming with Microsoft Visual Basic.NET. Array. What have we learnt in last lesson? What is Array?

Programming with Microsoft Visual Basic.NET. Array. What have we learnt in last lesson? What is Array? What have we learnt in last lesson? Programming with Microsoft Visual Basic.NET Using Toolbar in Windows Form. Using Tab Control to separate information into different tab page Storage hierarchy information

More information

VBA Handout. References, tutorials, books. Code basics. Conditional statements. Dim myvar As <Type >

VBA Handout. References, tutorials, books. Code basics. Conditional statements. Dim myvar As <Type > VBA Handout References, tutorials, books Excel and VBA tutorials Excel VBA Made Easy (Book) Excel 2013 Power Programming with VBA (online library reference) VBA for Modelers (Book on Amazon) Code basics

More information

Unit 4. Lesson 4.1. Managing Data. Data types. Introduction. Data type. Visual Basic 2008 Data types

Unit 4. Lesson 4.1. Managing Data. Data types. Introduction. Data type. Visual Basic 2008 Data types Managing Data Unit 4 Managing Data Introduction Lesson 4.1 Data types We come across many types of information and data in our daily life. For example, we need to handle data such as name, address, money,

More information

USING VB TO GENERATE PSEUDO-RANDOM NUMBERS... 25

USING VB TO GENERATE PSEUDO-RANDOM NUMBERS... 25 ESSENTIAL PROBLEM SOLVING STRATEGIES FOR PROGRAMMING TABLE OF CONTENTS ESSENTIAL PROBLEM SOLVING STRATEGIES FOR PROGRAMMING TABLE OF CONTENTS 1 A DETAILED DESCRIPTION OF POLYA S FOUR STEPS OF PROBLEM SOLVING

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

IFA/QFN VBA Tutorial Notes prepared by Keith Wong

IFA/QFN VBA Tutorial Notes prepared by Keith Wong Chapter 2: Basic Visual Basic programming 2-1: What is Visual Basic IFA/QFN VBA Tutorial Notes prepared by Keith Wong BASIC is an acronym for Beginner's All-purpose Symbolic Instruction Code. It is a type

More information

Outline. Midterm Review. Using Excel. Midterm Review: Excel Basics. Using VBA. Sample Exam Question. Midterm Review April 4, 2014

Outline. Midterm Review. Using Excel. Midterm Review: Excel Basics. Using VBA. Sample Exam Question. Midterm Review April 4, 2014 Midterm Review Larry Caretto Mechanical Engineering 209 Computer Programming for Mechanical Engineers April 4, 2017 Outline Excel spreadsheet basics Use of VBA functions and subs Declaring/using variables

More information

Strings in Visual Basic. Words, Phrases, and Spaces

Strings in Visual Basic. Words, Phrases, and Spaces Strings in Visual Basic Words, Phrases, and Spaces Strings are a series of characters. Constant strings never change and are indicated by double quotes. Examples: Fleeb Here is a string. Strings are a

More information

CMPT 110 MIDTERM OCTOBER 18, 2001

CMPT 110 MIDTERM OCTOBER 18, 2001 CMPT 110 MIDTERM OCTOBER 18, 2001 1 What will be displayed when the command button is clicked? 7% Level of difficulty 7 (out of 10) Assume there is a command button called cmdbutton Assume there is a picturebox

More information

VBScript Reference Manual for InduSoft Web Studio

VBScript Reference Manual for InduSoft Web Studio for InduSoft Web Studio www.indusoft.com info@indusoft.com InduSoft Web Studio Copyright 2006-2007 by InduSoft. All rights reserved worldwide. No part of this publication may be reproduced or transmitted

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

References. Iteration For. Iteration (Repetition) Iteration While. For loop examples

References. Iteration For. Iteration (Repetition) Iteration While. For loop examples References ENGG1811 Computing for Engineers Week 7 Iteration; Sequential Algorithms; Strings and Built-in Functions Chapra (Part 2 of ENGG1811 Text) Topic 19 (chapter 12) Loops Topic 17 (section 10.1)

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

Guess Paper Class XII Subject Informatics Practices TIME : 1½ HRS. M.M. : 50

Guess Paper Class XII Subject Informatics Practices TIME : 1½ HRS. M.M. : 50 Guess Paper 2009-10 Class XII Subject Informatics Practices Answer the following questions 1. Explain the following terms: 2x5=10 a) Shareware b) PHP c) UNICODE d) GNU e) FLOSS 2 Explain the following

More information

Multiple Choice Questions, COPA, Semester-2. Dr.V.Nagaradjane

Multiple Choice Questions, COPA, Semester-2. Dr.V.Nagaradjane Multiple Choice Questions, COPA, Semester-2 DrVNagaradjane December 25, 2017 ii Author: DrVNagaradjane Contents 1 Javascript 1 11 Algorithms 1 12 Flowcharts 1 13 Web servers 2 14 Features of web servers

More information

A/L 2011_revision. PASCAL PROGRAMMING

A/L 2011_revision. PASCAL PROGRAMMING Pascal is a high level programming language developed by Niklaus Wirth in 1970 based on the ALGOL programming language. It was named in honor of the French mathematician and philosopher Blaise Pascal.

More information

Function: function procedures and sub procedures share the same characteristics, with

Function: function procedures and sub procedures share the same characteristics, with Function: function procedures and sub procedures share the same characteristics, with one important difference- function procedures return a value (e.g., give a value back) to the caller, whereas sub procedures

More information

Higher Computing Science. Software Design and Development

Higher Computing Science. Software Design and Development Higher Computing Science Software Design and Development Programming with Visual Studio 2012 1 CONTENTS Topic 1 Topic 2 Topic 3 Topic 4 Topic 5 Topic 6 Topic 7 Topic 8 Topic 9 Getting started Strings and

More information

VB Script Reference. Summary. Exploring the VB Script Language. Altium Designer and Borland Delphi Run Time Libraries

VB Script Reference. Summary. Exploring the VB Script Language. Altium Designer and Borland Delphi Run Time Libraries Summary Technical Reference TR0125 (v1.6) February 27, 2008 This reference manual describes the VB Script language used in Altium Designer. This reference covers the following topics: Exploring the VB

More information

Complete program to solve a 2 nd degree equation

Complete program to solve a 2 nd degree equation Fundamentals of Computer Science 2010-2011 Laboratory 10 Functions and procedures (3) Objectives: To go deeply into the use of subprograms and passing parameters by reference To go deeply into the manipulation

More information

Appendix F Alphabetical List of Selected VBA Keywords

Appendix F Alphabetical List of Selected VBA Keywords Excel* for Chemists: A Comprehensive Guide, Third Edition by E. Joseph Billo Copyright 2011 John Wiley & Sons, Inc. Appendix F Alphabetical List of Selected VBA Keywords This listing of VBA objects, properties,

More information

Review for Programming Exam and Final May 4-9, Ribbon with icons for commands Quick access toolbar (more at lecture end)

Review for Programming Exam and Final May 4-9, Ribbon with icons for commands Quick access toolbar (more at lecture end) Review for Programming Exam and Final Larry Caretto Mechanical Engineering 209 Computer Programming for Mechanical Engineers May 4-9, 2017 Outline Schedule Excel Basics VBA Editor and programming variables

More information

Download the files from you will use these files to finish the following exercises.

Download the files from  you will use these files to finish the following exercises. Exercise 6 Download the files from http://www.peter-lo.com/teaching/x4-xt-cdp-0071-a/source6.zip, you will use these files to finish the following exercises. 1. This exercise will guide you how to create

More information

Manual. BasicMaker SoftMaker Software GmbH

Manual. BasicMaker SoftMaker Software GmbH Manual BasicMaker 1987-2018 SoftMaker Software GmbH Contents Welcome! 9 What is BasicMaker?... 9 Using the script editor 11 Starting BasicMaker... 11 Commands in the File menu of the script editor...

More information

Numerical Methods in Engineering Sciences

Numerical Methods in Engineering Sciences Numerical Methods in Engineering Sciences Lecture 1: Brief introduction to MATLAB Pablo Antolin pablo.antolinsanchez@unipv.it October 29th 2013 How many of you have used MATLAB before? How many of you

More information

FRESHER TRAINING PROGRAM [MANUAL/QTP/ALM/QC/SE/LR/DB/ANDROID] COURSE OVERVIEW

FRESHER TRAINING PROGRAM [MANUAL/QTP/ALM/QC/SE/LR/DB/ANDROID] COURSE OVERVIEW FRESHER TRAINING PROGRAM [MANUAL/QTP/ALM/QC/SE/LR/DB/ANDROID] Software Testing COURSE OVERVIEW Manual Concepts Software Testing Concepts What is software Testing Objective of software Testing Importance

More information

Visual Basic. The Integrated Development Environment. Menu Bar

Visual Basic. The Integrated Development Environment. Menu Bar Visual Basic Visual Basic is initiated by using the Programs option > Microsoft Visual Basic 6.0 > Visual Basic 6.0. Clicking the Visual Basic icon, we can view a copyright screen enlisting the details

More information

References. Iteration For. Iteration (Repetition) Iteration While. For loop examples

References. Iteration For. Iteration (Repetition) Iteration While. For loop examples ENGG1811 UNSW, CRICOS Provider No: 00098G W6 slide 1 References ENGG1811 Computing for Engineers Week 6 Iteration; Sequential Algorithms; Strings and Built-in Functions Chapra (Part 2 of ENGG1811 Text)

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

Darshan Institute of Engineering & Technology for Diploma Studies

Darshan Institute of Engineering & Technology for Diploma Studies Overview of Microsoft.Net Framework: The Dot Net or.net is a technology that is an outcome of Microsoft s new strategy to develop window based robust applications and rich web applications and to keep

More information

VBA. VBA at a glance. Lecture 61

VBA. VBA at a glance. Lecture 61 VBA VBA at a glance Lecture 61 1 Activating VBA within SOLIDWORKS Lecture 6 2 VBA Sub main() Function Declaration Dim A, B, C, D, E As Double Dim Message, Title, Default Message = "A : " ' Set prompt.

More information

Long (or LONGMATH ) floating-point (or integer) variables (length up to 1 million, limited by machine memory, range: approx. ±10 1,000,000.

Long (or LONGMATH ) floating-point (or integer) variables (length up to 1 million, limited by machine memory, range: approx. ±10 1,000,000. QuickCalc User Guide. Number Representation, Assignment, and Conversion Variables Constants Usage Double (or DOUBLE ) floating-point variables (approx. 16 significant digits, range: approx. ±10 308 The

More information

Quick Reference Guide

Quick Reference Guide SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD mikroelektronika Development tools - Books - Compilers Quick Reference Quick Reference Guide with EXAMPLES for Pascal language This reference guide

More information

2001 PET POCKET REFERENCE GUIDE TO COMMODORE'S LEADING EDGE COMPUTER PRODUCTS. ~www.commodore.ca COPYRIGHT 1979, LEADING EDGE CO. ALL RIGHTS RESERVED

2001 PET POCKET REFERENCE GUIDE TO COMMODORE'S LEADING EDGE COMPUTER PRODUCTS. ~www.commodore.ca COPYRIGHT 1979, LEADING EDGE CO. ALL RIGHTS RESERVED ~www.commodore.ca May Not Reprint Without Permission POCKET REFERENCE GUIDE TO COMMODORE'S 2001 PET LEADING EDGE COMPUTER PRODUCTS COPYRIGHT 1979, LEADING EDGE CO. ALL RIGHTS RESERVED MISC. INFORMATION

More information

Control Flow. COMS W1007 Introduction to Computer Science. Christopher Conway 3 June 2003

Control Flow. COMS W1007 Introduction to Computer Science. Christopher Conway 3 June 2003 Control Flow COMS W1007 Introduction to Computer Science Christopher Conway 3 June 2003 Overflow from Last Time: Why Types? Assembly code is typeless. You can take any 32 bits in memory, say this is an

More information

Manual. BasicMaker SoftMaker Software GmbH

Manual. BasicMaker SoftMaker Software GmbH Manual BasicMaker 2010 1987-2010 SoftMaker Software GmbH Contents Welcome! 9 What is BasicMaker?... 9 Using the script editor 11 Starting BasicMaker... 11 Commands in the File menu of the script editor...

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

Macro Programming Reference Guide. Copyright 2005 Scott Martinez

Macro Programming Reference Guide. Copyright 2005 Scott Martinez Macro Programming Reference Guide Copyright 2005 Scott Martinez Section 1. Section 2. Section 3. Section 4. Section 5. Section 6. Section 7. What is macro programming What are Variables What are Expressions

More information

JAVA AND J++ REFERENCE NOTES

JAVA AND J++ REFERENCE NOTES JAVA AND J++ REFERENCE NOTES JAVA AND J++ REFERENCE NOTES1 LEARNING JAVA OPERATORS, DATA TYPES AND CONTROL FLOW STRUCTURES BY COMPARING TO VB 2 INTRODUCTION 2 OPERATORS IN VB AND JAVA 2 SUMMARY OF JAVA

More information

IDENTIFYING UNIQUE VALUES IN AN ARRAY OR RANGE (VBA)

IDENTIFYING UNIQUE VALUES IN AN ARRAY OR RANGE (VBA) Date: 20/11/2012 Procedure: Identifying Unique Values In An Array Or Range (VBA) Source: LINK Permalink: LINK Created by: HeelpBook Staff Document Version: 1.0 IDENTIFYING UNIQUE VALUES IN AN ARRAY OR

More information

LECTURE 18. Control Flow

LECTURE 18. Control Flow LECTURE 18 Control Flow CONTROL FLOW Sequencing: the execution of statements and evaluation of expressions is usually in the order in which they appear in a program text. Selection (or alternation): a

More information

DroidBasic Syntax Contents

DroidBasic Syntax Contents DroidBasic Syntax Contents DroidBasic Syntax...1 First Edition...3 Conventions Used In This Book / Way Of Writing...3 DroidBasic-Syntax...3 Variable...4 Declaration...4 Dim...4 Public...4 Private...4 Static...4

More information

by NetMedia, Inc. All rights reserved. Basic Express, BasicX, BX-01, BX-24 and BX-35 are trademarks of NetMedia, Inc.

by NetMedia, Inc. All rights reserved. Basic Express, BasicX, BX-01, BX-24 and BX-35 are trademarks of NetMedia, Inc. Version 2.0 1998-2002 by NetMedia, Inc. All rights reserved. Basic Express, BasicX, BX-01, BX-24 and BX-35 are trademarks of NetMedia, Inc. Microsoft, Windows and Visual Basic are either registered trademarks

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

MARK SCHEME for the May/June 2011 question paper for the guidance of teachers 9691 COMPUTING. 9691/23 Paper 2 (Written Paper), maximum raw mark 75

MARK SCHEME for the May/June 2011 question paper for the guidance of teachers 9691 COMPUTING. 9691/23 Paper 2 (Written Paper), maximum raw mark 75 UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS GCE Advanced Subsidiary Level and GCE Advanced Level MARK SCHEME for the May/June 2011 question paper for the guidance of teachers 9691 COMPUTING 9691/23

More information

2Practicals Visual Basic 6.0

2Practicals Visual Basic 6.0 2Practicals Visual Basic 6.0 Practical 1: 1. Navigation of Visual Basic Integrated Development Environment The Visual Basic IDE is made up of a number of components Menu Bar Tool Bar Project Explorer Properties

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

VISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS

VISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS VISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS Intended Learning Objectives Able to build a simple Visual Basic Application. 2 The Sub Statement Private Sub ControlName_eventName(ByVal sender As System.Object,

More information

BM214E Object Oriented Programming Lecture 4

BM214E Object Oriented Programming Lecture 4 BM214E Object Oriented Programming Lecture 4 Computer Numbers Integers (byte, short, int, long) whole numbers exact relatively limited in magnitude (~10 19 ) Floating Point (float, double) fractional often

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

Reference Manual. Design Director Script Language. Version 01

Reference Manual. Design Director Script Language. Version 01 Reference Manual Design Director Script Language Version 01 CUE spol. s r.o., Na Dolinách 6, 147 00 Praha 4, Czech Republic phone: +420 241 433 555 fax: +420 241 432 446 e-mail: info@cue.cz PM004_01, 01.04.2003

More information

References. Iteration For. Iteration (Repetition) Iteration While. For loop examples

References. Iteration For. Iteration (Repetition) Iteration While. For loop examples References ENGG1811 Computing for Engineers Week 7 Iteration; Sequential Algorithms; Strings and Built-in Functions Chapra (Part 2 of ENGG1811 Text) Topic 19 (chapter 12) Loops Topic 17 (section 10.1)

More information

GENERAL INFORMATICS Chapter 3. The Representation of Processing Algorithms Algorithm definition Steps in computer problem solving process

GENERAL INFORMATICS Chapter 3. The Representation of Processing Algorithms Algorithm definition Steps in computer problem solving process GENERAL INFORMATICS Chapter 3. The Representation of Processing Algorithms 3.1. Algorithm definition 3.2. Steps in computer problem solving process 3.3. Steps for preparing a program for execution 3.4.

More information

VB.NET. Q.1 Explain.Net Framework Architecture. OR Components of.net Framework

VB.NET. Q.1 Explain.Net Framework Architecture. OR Components of.net Framework Q.1 Explain.Net Framework Architecture. OR Components of.net Framework Net Framework is a platform that provides tools and technologies to develop Windows, Web and Enterprise applications. It mainly contains

More information

Fundamentals of Computer Science Laboratory 2 Sequential programs

Fundamentals of Computer Science Laboratory 2 Sequential programs Fundamentals of Computer Science 2010-2011 Laboratory 2 Sequential programs Objetivos: VB Controls: command button (cmd), form (frm, label (lbl), text box (txt) and picture box (pct) VB controls properties:

More information

Chapter 4 The If Then Statement

Chapter 4 The If Then Statement The If Then Statement Conditional control structure, also called a decision structure Executes a set of statements when a condition is true The condition is a Boolean expression For example, the statement

More information

Avoiding Naming Conflicts

Avoiding Naming Conflicts Avoiding Naming Conflicts A naming conflict occurs when you try to create or use an identifier that was previously defined. In some cases, naming conflicts generate errors such as "Ambiguous name detected"

More information

Functions and Procedures. Functions. Built In Functions. Built In Functions in VB FIT 100 FIT 100

Functions and Procedures. Functions. Built In Functions. Built In Functions in VB FIT 100 FIT 100 Functions Functions and Procedures Similarities: Little mini-programs that are named and include a series of code statements (instructions) to be executed when called. Differences: Functions have a specific

More information

AIS Cube [THE BLAZINGCORE SERIES] LANGUAGE REFERENCE

AIS Cube [THE BLAZINGCORE SERIES] LANGUAGE REFERENCE AIS Cube LANGUAGE REFERENCE [THE BLAZINGCORE SERIES] With superior number crunching abilities and peripheral handling on our custom embedded OS, Rapid prototyping is now easy... and blazing fast. Sonata

More information

OpenOffice.org 3.2 BASIC Guide

OpenOffice.org 3.2 BASIC Guide OpenOffice.org 3.2 BASIC Guide Copyright The contents of this document are subject to the Public Documentation License. You may only use this document if you comply with the terms of the license. See:

More information

Computational Physics Operating systems

Computational Physics Operating systems Computational Physics numerical methods with C++ (and UNIX) 2018-19 Fernando Barao Instituto Superior Tecnico, Dep. Fisica email: fernando.barao@tecnico.ulisboa.pt Computational Physics 2018-19 (Phys Dep

More information

In-Built Functions. String Handling Functions:-

In-Built Functions. String Handling Functions:- L i b r a r y F u n c t i o n s : String Handling Functions:- In-Built Functions 1) LTrim() :- Usage: The LTrim() function returns a string containing a copy of specified string without leading spaces.

More information

1. Intro to the Calc User's Guide This manual is copyright (c) 1989 by D. Pankhurst. All rights reserved. It has been made available to purchasers of

1. Intro to the Calc User's Guide This manual is copyright (c) 1989 by D. Pankhurst. All rights reserved. It has been made available to purchasers of 1. Intro to the Calc User's Guide This manual is copyright (c) 1989 by D. Pankhurst. All rights reserved. It has been made available to purchasers of this Loadstar issue as an accompanying text program

More information

Excel VBA Variables, Data Types & Constant

Excel VBA Variables, Data Types & Constant Excel VBA Variables, Data Types & Constant Variables are used in almost all computer program and VBA is no different. It's a good practice to declare a variable at the beginning of the procedure. It is

More information

PGDCA SEMESTER-I PGDCA 101: PC SOFTWARE: Unit-1: Introduction

PGDCA SEMESTER-I PGDCA 101: PC SOFTWARE: Unit-1: Introduction PGDCA SEMESTER-I PGDCA 101: PC SOFTWARE: - Introduction to personal computer Concept of hardware & software, program, data processing, classification of PC software, Computer Applications. - Overview of

More information