MI Using String Functions: Difference between revisions
Content deleted Content added
Ari Craven (talk | contribs) No edit summary |
Ari Craven (talk | contribs) No edit summary |
||
Line 9:
|'''Chr$'''( num ) || Returns a character that corresponds to a character code (e.g. Chr$(65) returns the string "A").
|-
|-
|-
|-
|-
|'''LCase$'''( str ) || Returns a lowercase version of the string str.
|-
|'''Left$'''( str , num ) || Returns the first num characters of the string str.
|-
|'''Len'''( str ) || Returns the number of characters in a string.
|-
|'''LTrim$'''( str ) || Trims any spaces from the start of str and returns result.
|-
|'''Mid$'''( str, num1, num2 ) || Returns a portion of the string str starting at character position num1 and extending for num2 characters.
|-
|'''Proper$'''( str ) || Returns a string with proper capitalization (first letter of each word capitalized).
|-
|'''Right$'''( str , num ) || Returns the last num characters of the string str.
|-
|'''RTrim$'''( str ) || Trims any spaces from the end of str and returns result.
|-
|'''Str$'''( expr ) || Returns a string approximation of an expression.
|-
|'''UCase$'''( str ) || Returns an uppercase (all capitalized) version of str.
|-
|'''Val'''( str ) || Returns the numeric value of the string; for example, Val("18") returns the number 18.
|-
▲|align="center"|'''InStr'''( num , str1 , str2 ) || Searches the string str1 starting at character position num, and looks for an occurrence of the string str2. Returns the position where str2 was found, or zero if not found. To start search at beginning, use a num value of one (1).
|}
| |||