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,

Slides:



Advertisements
Similar presentations
CSI 1306 PROGRAMMING IN VISUAL BASIC PART 2. Part 2  1. Strings  2. Translating Conditional Branch Instructions  3. Translation Set 2  4. Debugging.
Advertisements

Manipulating Strings String Functions. VB provides a large number of functions that facilitate working with strings. These are found in Microsoft.VisualBasic.Strings.
1. Write an Excel text function in cell Company Data!A4, which may be copied down, to string together the first and last name with only the first letter.
Computer Science & Engineering 2111 Text Functions 1CSE 2111 Lecture-Text Functions.
Proyek Queri-queri Lanjut dan Sub-subqueri. Variables dan Data.
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.
There is a String type in VB Data TypePrefix Stringstr Dim strFirstName As String strFirstName = “Homer” strFirstName = “” String A String variable can.
VB Built-in Functions School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 5, Monday 2/10/03)
1 Pertemuan 04 Expression Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
Strings in Visual Basic Words, Phrases, and Spaces.
Introduction to Oracle9i: SQL1 Selected Single-Row Functions.
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.
BACS 287 Visual Basic String Manipulation. BACS 287 Visual Basic Strings In Visual Basic, a “string” is a series of text, numbers, and special characters.
Chapter 9 Creating Formulas that Manipulate Text Microsoft Office Excel 2003.
Strings PART II STRING$ AND SPACE$. Create strings of specified number String$ creates string of specified character Space$ creates string of spaces Example:
PROGRAMMING Functions. Objectives Understand the importance of modular programming. Know the role of functions within programming. Use functions within.
Mastering Char to ASCII AND DOING MORE RELATED STRING MANIPULATION Why VB.Net ?  The Language resembles Pseudocode - good for teaching and learning fundamentals.
CS0004: Introduction to Programming Variables – Strings.
Chapter 10 Selected Single-Row Functions Oracle 10g: SQL.
Chapter 5 Selected Single-Row Functions. Chapter Objectives  Use the UPPER, LOWER, and INITCAP functions to change the case of field values and character.
Manipulating Text In today’s lesson we will look at: why we might want to pick out parts of text strings some BASIC functions that can be used to chop.
Fundamentals of Python: First Programs
Oracle 11g: SQL Chapter 10 Selected Single-Row Functions.
String Manipulation. Strings have their own properties and methods, just like a textbox or label or form does.
1 Revision on Foxpro Commands Print command (?) e.g.? 6/2 * 3 9 SET DECIMAL TO integer e.g.SET DECIMAL TO 4 ? 2 / SET( ) function e.g.? SET (‘DECIMAL’)
Introduction to MIS1 Copyright © by Jerry Post Introduction to MIS Appendix 12 Visual Basic.
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.
SINGLE ROW FUNCTIONS 1. CHARACTER MANIPULATION Prof. Carmen Popescu Oracle Academy Lead Adjunct.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 24 The String Section.
Lecture 8 – SQL Joins – assemble new views from existing tables INNER JOIN’s The Cartesian Product Theta Joins and Equi-joins Self Joins Natural Join.
String and General Procedures. Answer to the last question of Exam 1 Start Get a number Divide the Number By 2 Is the quotient Equal to 1? Print The Remain.
String Manipulation By Felix Thompson, Jerzy Griffiths and Joel Sutcliffe.
SQL Functions. SQL functions are built into Oracle Database and are available for use in various appropriate SQL statements. These functions are use full.
1 STRINGS String data type Basic operations on strings String functions String procedures.
H2K Infosys is business based in Atlanta, Georgia – United States Providing Online IT training services world wide. USA - +1-(770) ,
Strings The Basics. Strings a collection data type can refer to a string variable as one variable or as many different components (characters) string.
String Manipulation 10/21/2015 Lect#6 GC Strings have their own properties and methods, just like a textbox or label or form does. 10/21/2015 Lect#6.
CECS 5020 Computers in Education Visual Basic Variables and Constants.
Copyright © Don Kussee 1410-Ch4 #521 CNS 1120 Chapter 4 Performing Calculations & Manipulating Data 1120-Ch4.PPT.
CS4 –lecture 6 Wednesday, Jan 19, 2011 Roxana Gheorghiu.
Visual Basic.net Functions. Function (Defined) A procedure that returns a value when called.
1 CSE 2337 Chapter 7 Organizing Data. 2 Overview Import unstructured data Concatenation Parse Create Excel Lists.
Visual Basic Review LBS 126. VB programming Project Form 1Form 2Form 3 Text boxButton Picture box Objects Text box Button Objects.
1 Inside Module 8 Extracting Data Page n Using the Extract command2 n Coercion3 n $-functions4 n Extract from a table7.
[ ] Square brackets enclose syntax options { } Braces enclose items of which only one is required | A vertical bar denotes options … Three dots indicate.
02/03/ Strings Left, Right and Trim. 202/03/2016 Learning Objectives Explain what the Left, Right and Trim functions do.
Strings PART I STRINGS, DATES, AND TIMES. FUNDAMENTALS OF CHARATERS AND STRINGS VB represents characters using American National Standards Institute(ANSI)
CHAPTER FOUR Performing Calculations and Manipulating Data: Expressions.
1 VB-06-String Manipulation Mar 03, 2002 String Function VISUAL BASIC.
Strings CSE 1310 – Introduction to Computers and Programming Alexandra Stefan University of Texas at Arlington 1.
CSC 162 Visual Basic I Programming. String Functions LTrim( string ) –Removes leading spaces from the left side of string RTrim( string ) –Removes trailing.
Winter 2016CISC101 - Prof. McLeod1 CISC101 Reminders Quiz 3 this week – last section on Friday. Assignment 4 is posted. Data mining: –Designing functions.
13/06/ Strings Left, Right and Trim. 213/06/2016 Learning Objectives Explain what the Left, Right and Trim functions do.
Lesson 4 String Manipulation. Lesson 4 In many applications you will need to do some kind of manipulation or parsing of strings, whether you are Attempting.
String Manipulation Reference:
String Methods Programming Guides.
String Manipulation Reference:
Chapter 10 Selected Single-Row Functions Oracle 10g: SQL
4. Functions and Control Statements
Representing Characters
VB Math All of your favorite mathematical operators are available in VB: + Addition - Subtraction * Multiplication / Division \ Integer Division Mod Modulo.
SQL Text Manipulation Farrokh Alemi, Ph.D.
String Manipulation Reference:
Sub Procedures and Functions
String Manipulation Reference:
VBScript Session 10.
Fundamentals of Python: First Programs
MapInfo SQL String Functions
Murach's JavaScript and jQuery (3rd Ed.)
Presentation transcript:

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, Mid, Trim, Ltrim, Rtrim, Ucase, Lcase, Instr, Val, Str,Chr and Asc. In this masterclass, we will learn how to use some of the string manipulation function such as Len, Right, Left, Mid, Trim, Ltrim, Rtrim, Ucase, Lcase, Instr, Val, Str,Chr and Asc. Listen closely Listen closely

LEN The length function returns an integer value which is the length of a phrase or a sentence, including the empty spaces. The length function returns an integer value which is the length of a phrase or a sentence, including the empty spaces.

RIGHT The Right function extracts the right portion of a phrase. The Right function extracts the right portion of a phrase. Takes up less space in the data files Takes up less space in the data files

LEFT The Left function extract the left portion of a phrase. The Left function extract the left portion of a phrase. Takes up less space in the data files Takes up less space in the data files

LTRIM The Ltrim function trims the empty spaces of the left portion of the phrase. The Ltrim function trims the empty spaces of the left portion of the phrase. Takes up less space in the data files Takes up less space in the data files

RTRIM The Rtrim function trims the empty spaces of the right portion of the phrase. The Rtrim function trims the empty spaces of the right portion of the phrase. Takes up less space in the data files Takes up less space in the data files

TRIM The trim function trims the empty spaces on both side of the phrase. The trim function trims the empty spaces on both side of the phrase. Takes up less space in the data files Takes up less space in the data files

MID The Mid function extracts a substring from the original phrase or string. The Mid function extracts a substring from the original phrase or string.

INSTR The InStr function looks for a phrase that is embedded within the original phrase and returns the starting position of the embedded phrase. The InStr function looks for a phrase that is embedded within the original phrase and returns the starting position of the embedded phrase.

UCASE and LCASE The Ucase function converts all the characters of a string to capital letters. On the other hand, the Lcase function converts all the characters of a string to small letters. The Ucase function converts all the characters of a string to capital letters. On the other hand, the Lcase function converts all the characters of a string to small letters.

STR and VAL The Str is the function that converts a number to a string while the Val function converts a string to a number. The two functions are important when we need to perform mathematical operations. The Str is the function that converts a number to a string while the Val function converts a string to a number. The two functions are important when we need to perform mathematical operations.

CHR and ASC The Chr function returns the string that corresponds to an ASCII code while the Asc function converts an ASCII character or symbol to the corresponding ASCII code. The Chr function returns the string that corresponds to an ASCII code while the Asc function converts an ASCII character or symbol to the corresponding ASCII code.

Your task Write a program with trim Write a program with trim VB exercises should be in the form of a task sheet such as theones on the learning VB moodle page VB exercises should be in the form of a task sheet such as theones on the learning VB moodle page