Right: Difference between revisions
Jump to navigation
Jump to search
Created page with "RIGHT(''string, ''length'') '''Description''' RIGHT returns a string containing a number of characters from the right end of a string. The required parameter, string, is any..." |
No edit summary |
||
Line 1: | Line 1: | ||
RIGHT(''string, ''length'') | RIGHT(''string'', ''length'') | ||
'''Description''' | '''Description''' | ||
RIGHT returns a string containing a number of characters from the right end of a string. The required parameter, string, is any valid string expression. The required parameter, length, is any valid numeric expression, if length is 0, an empty string ("") is returned, if length is greater than the size of string, the entire string is returned. | RIGHT returns a string containing a number of characters from the right end of a string. The required parameter, ''string'', is any valid string expression. The required parameter, ''length'', is any valid numeric expression, if ''length'' is 0, an empty string ("") is returned, if ''length'' is greater than the size of ''string'', the entire string is returned. | ||
'''Example''' | '''Example''' |
Revision as of 19:01, 8 July 2012
RIGHT(string, length)
Description
RIGHT returns a string containing a number of characters from the right end of a string. The required parameter, string, is any valid string expression. The required parameter, length, is any valid numeric expression, if length is 0, an empty string ("") is returned, if length is greater than the size of string, the entire string is returned.
Example
REM RIGHT Example 'RIGHT returnssubstringfromstringrightend DIM Wendy, Eric Wendy = "Testaburger" Eric = "Cartman" PRINT "The RIGHT 6 of " & Wendy & ":", _ RIGHT(Wendy, 6) PRINT "The RIGHT 4 of " & Eric & ":", _ RIGHT(Eric, 4)
Output
The RIGHT 6 of Testaburger:burger The RIGHT 4 of Cartman: tman
Related Items