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


objects constants operators statements functions properties methods





FUNCTION:  RTrim( )

RTrim(String)

The RTrim function removes extra blank spaces only on the right side of a string.

Note that HTML automatically removes extra blank spaces in this view.

Code:
<% =RTrim("   A sentence with extra spaces on both sides.    ") %>

Output:
A sentence with extra spaces on both sides.