# VB String Bulit In Functions,Visual Basic String Function

VB String Bulit In  Functions,Visual Basic String Function Visual Basic Built In String Functions and  ASCII CHART
 Function Purpose LCase\$ (S) Converts any uppercase letters in string to lowercase. UCase\$ (S) Converts any lowercase letters in string to uppercase. Left\$ (S, n) Returns the number of specified characters, starting at the beginning of the string (from the left). Right\$ (S, n) Returns the number of specified characters from the end of the string (from the right). Mid\$ (S,  n1, n2) Returns the character string starting at the position indicated by the first number and continuing for the length specified by the second number. Len\$ (S) Returns the number of characters in the string. Trim\$ (S) Removes the spaces from the beginning and the end of the string. InStr\$ (S1, S2) Searches for the first occurrence of one string in another and gives the position at which the string is found StrReverse\$(S) Reverses the characters of the string. Replace\$(S,S1,S2) Replaces substrings in a string. Str\$(x) Converts a number to a numeric string value. Val(X) Converts a numeric string value to a number. Sqr (n) Gives the square root of ‘n’ Int (n) Gives the integer part of ‘n’ e.g. Int(2.1) = 2, Int(2.6) = 2 Round (n , x) Rounds a number ‘n’ to ‘x’ decimal places. e.g. Round (6.6666 , 2) = 6.67 Cos (theta) Gives the cosine of theta (theta should be in radians) .We also have other trigonometric functions available. Log (x) Gives the natural log of ‘x’. Asc(ch) Gives the ASCII value of character Chr(n) Gives the Character against ASCII value/. Rnd Use for random number generation. Abs(n) Absolute the value of n Sgn(n) Give the Sign of n,if n is  +ve give 1 ,if n is  –ve give -1 and if is zero than give 0 ASCII CHART 0,1,2…..9 48,49,50…..57 respectively A,B,C ……Z 65,66,67…..90 respectively a,b,c ……z 97,98,…….122 respectively • Title : VB String Bulit In Functions,Visual Basic String Function
• Posted by :
• Date : 11:15
• Labels :

• Blogger Comments
• Facebook Comments