ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods






FUNCTION:  Right( )

Right(String, Length)

The Right function returns the right portion of the designated string for a designated length starting from the right side.


There are two mandatory arguments.

String

The String argument is the name of the string you wish to truncate.


Length

The Length argument is the number of characters (including blanks) you wish to save counting from the right side towards the left side of the string.

Code:
<% =Right("abcde fghij klmno pqrst uvwxyz", 13) %>

Output:
pqrst uvwxyz