Proyek Queri-queri Lanjut dan Sub-subqueri. Variables dan Data.

Slides:



Advertisements
Similar presentations
What Does This Program Do?
Advertisements

CSI 1306 PROGRAMMING IN VISUAL BASIC PART 2. Part 2  1. Strings  2. Translating Conditional Branch Instructions  3. Translation Set 2  4. Debugging.
Manipulating Strings String Functions. VB provides a large number of functions that facilitate working with strings. These are found in Microsoft.VisualBasic.Strings.
Visual Basic Statements Chapter 5. Relational Operators  OperationSymbol  Equal  =  Less than  <  Greater than  >  Not equal   Less than.
Programming Fundamentals Chapter 4. Floating Point Numbers  Scientific notation 98 = 0.98 x = x = x10 -1 
Slide 1 VB Programming Fundamentals. Slide 2 Visual Basic Language v VB language is powerful and easy to use v Descendent of BASIC (Beginner's All-Purpose.
Built-In Functions.
Introduction to Computing Dr. Nadeem A Khan. Lecture 4.
1 Pertemuan 04 Expression Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
Strings in Visual Basic Words, Phrases, and Spaces.
Programming Fundamentals. Floating Point Numbers Scientific notation 98 = 0.98 x = x = x10 -1 Sign bit; Fraction.
Introduction to Computing Dr. Nadeem A Khan. Lecture 14.
Introduction to Computing Dr. Nadeem A Khan. Lecture 6.
On to… string operations & functions. Concatenation (&) §When we want to combine two character strings into one new (longer) string, we can concatenate.
Section 3.6 BUILT-IN FUNCTIONS involving numbers & strings.
Using Visual Basic for Applications (VBA) Jake Blanchard University of Wisconsin Spring 2010.
Spreadsheet-Based Decision Support Systems
Saeed Ghanbartehrani Summer 2015 Lecture Notes #4: Working with Variables and User Interfaces IE 212: Computational Methods for Industrial Engineering.
Mr C Johnston ICT Teacher BTEC IT Unit 06 - Lesson 05 Learning To Program.
CS0004: Introduction to Programming Relational Operators, Logical Operators, and If Statements.
Microsoft Access Using Visual Basic Routines. Visual Basic Datatypes Boolean Byte Currency Date Double Integer Long Object Single String Variant Hyperlink.
Manipulation Masterclass By the VB Gods. In this masterclass, we will learn how to use some of the string manipulation function such as Len, Right, Left,
情報基礎 B Lecture 8 Takeshi Tokuyama Tohoku University Graduate School of Information Sciences System Information Sciences Design and Analysis of Information.
Lecture 8 Visual Basic (2).
VB Core II Conditional statements Exception handling Loops Arrays Debugging.
University of Toronto at Scarborough © Andria Hunter, Kersti Wain-Bantin CSCA01 VBA-2 1 Lecture Outline Mathematical Expressions String Concatenation Built-in.
Chapter Six: Working With Arrays in Visual Basic.
1 E0001 Computers in Engineering Built in Functions.
MS Visual Basic Applications Walter Milner. Event-driven programming Standard approach for GUIs Contrast with old character interfaces – program determines.
Introduction to MIS1 Copyright © by Jerry Post Introduction to MIS Appendix 12 Visual Basic.
1 © 2000 John Urrutia. All rights reserved. Qbasic Input, Calculations and Functions.
Manipulating Strings. What is a string? Data composed of text characters. The data is stored in consecutive bytes of memory. Each byte stores the ASCII.
Calculations Chapter 11 Library of math functions, and constants cos, sin, tan, abs, min, max, log, random, sqrt, pow, exp Constants.PI,.E Use care with.
Overview of VBA Programming & Syntax. Programming With Objects u Objects –Properties: attributes or characteristics of an object (e.g., font size, color,
Visual Basic I Programming
Week 6.  Assessment 2  Do Loops  Custom Functions.
‘Tirgul’ # 2 Enterprise Development Using Visual Basic 6.0 Autumn 2002 Tirgul #2.
Copyright © 2001 by Wiley. All rights reserved. Chapter 6: Using Arrays Control Arrays List Arrays Finding Items in Arrays Multiple Forms 2-Dimensional.
1 Scripting Languages VBScript - Recognized mainly by Internet Explorer only - Netscape does have a plug-in JavaScript - Recognized by Internet Explorer.
Macro’s Within excel. Most functionality can be driven from VBA VBA is the programming language that runs inside of excel. It uses visual basic as the.
Advanced Programming Strings Arrays Arguments Modulus.
Hungarian Notation A must in this course Every object used MUST be renamed including the form(s) using the following rules Form  frmFormName E.g. frmTemperature.
Chapter 4 Getting Started with VBA. Subroutines Subroutine is the logical section of code that performs a particular task. Subroutine is also called a.
CECS 5020 Computers in Education Visual Basic Variables and Constants.
VB6.0 دىن VB.NET گىچە دەسلەپكى ئۈگەنگۈچىلەر ئۈچۈن ئاپتورى:چاشق ان رەتلىگۈچى:چا شقان لايىھەلىگۈچى: چاشقان.
Copyright © Don Kussee 1410-Ch4 #521 CNS 1120 Chapter 4 Performing Calculations & Manipulating Data 1120-Ch4.PPT.
Introduction to Computing Dr. Nadeem A Khan. Lecture 7.
Numbers1 Working with Numbers There are times that we have to work with numerical values. When we count things, we need Integers or whole numbers. When.
Higher Computing Software Development -So Far- 5/10/10.
Controlling Program Flow with Looping Structures
Visual Basic.net Functions. Function (Defined) A procedure that returns a value when called.
Visual Basic Review LBS 126. VB programming Project Form 1Form 2Form 3 Text boxButton Picture box Objects Text box Button Objects.
Strings PART I STRINGS, DATES, AND TIMES. FUNDAMENTALS OF CHARATERS AND STRINGS VB represents characters using American National Standards Institute(ANSI)
Knowledge Base. Defining a Variable Dim statement Dim intXX As Integer Public in a Module Public dblNN As Double.
1 VB-06-String Manipulation Mar 03, 2002 String Function VISUAL BASIC.
CSC 162 Visual Basic I Programming. String Functions LTrim( string ) –Removes leading spaces from the left side of string RTrim( string ) –Removes trailing.
Palitha Baddegama. Divisional Computer Resource Centre Hingurakgoda Visual basic 6.0.
13/06/ Strings Left, Right and Trim. 213/06/2016 Learning Objectives Explain what the Left, Right and Trim functions do.
TUTORIAL 4 Visual Basic 6.0 Mr. Crone. Pseudocode Pseudocode is written language that is part-code part- English and helps a programmer to plan the layout.
Fungsi dan Penggunaanya
4. Functions and Control Statements
للمزيد زورونا على موقعنا الإلكتروني:
Controlling Execution
Q W E R T Y U I O P A S D F G H J K L Z X C V B N M
البرمجة بلغة فيجول بيسك ستوديو
Chapter (3) - Looping Questions.
Sub Procedures and Functions
VBScript Session 10.
GCSE Computing:: Selection (IF statements)
Presentation transcript:

Proyek Queri-queri Lanjut dan Sub-subqueri

Variables dan Data

Integer 2 bytes

Long 4 bytes +/- 2,147,483,648

Single 4 bytes +/ E38 +/ E-45

Double 8 bytes +/ E-308 +/ E-324

Currency 8 bytes +/- 922,337,203,685,

Variant Any data Type Null

Fungsi-fungsi Internal standar

Fungsi String LCase, UCase Format StrComp Len InStr Chr, Asc String Trim, LTrim, RTrim Left, Right, Mid & Concatenation

Len Len"Ramanujan") = 9

InStr ("8764 main"," ") = 5

String String(5, "a") = "aaaaa"

Trim, LTrim, RTrim Trim(" Maria ") = "Maria"

Left, Right, Mid Left("jackson",5) = "Jacks"

& Concatenation "Frank" & "Rose = "FrankRose"

Fungsi Matematis Standar Numeric

Exp, Log Atn, Cos, Sin, Tan Sqr Abs Sgn Int, Fix Rnd, Randomize

Conditions

Basic Conditions If (conditiona1) Then statement for true Else Statement for false If (condition2) Then statements for true End If

Nested Conditions Response = MsgBox (...) If (response = vbYes) Then 'statements for Yes Else If (response = vbNo) Then 'statements for No Else 'statements for Cancel End If End If

Pernyataan Select Response = MsgBox(... ) Select Case response case vbYes 'statements for Yes Case vbNo 'statements for No Case vbCancel 'statements for cancel End Case

Loops

Input dan Output

Subroutines

Subroutine StatusMessage dapat dipanggil dari lokasi mana saja. Main program... StatusMessage "trying to connect."... StatusMessage "verifying access."... End main program Sub StatusMessage (Msg As String) 'Display Msg, location, color End Sub

Komputasi

Variable Scope

Form Button1 Button2

Form-Module Code Sub Button1_Click() Dim I1 As Integer I1 = 3 End Sub Sub Button2_Click() Dim i1 As Integer I1 = 7 End Sub

Proyek Queri-queri Lanjut dan Sub- subqueri