Presentation is loading. Please wait.

Presentation is loading. Please wait.

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,

Similar presentations


Presentation on theme: "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,"— Presentation transcript:

1 Manipulation Masterclass By the VB Gods

2 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

3 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.

4 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

5

6 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

7 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

8 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

9 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

10 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.

11 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.

12 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.

13 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.

14 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.

15 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


Download ppt "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,"

Similar presentations


Ads by Google