WANTS TO MAKE SOFTWARE WITHOUT KNOWLEDGE OF ASP? CLICK HERE
The RTrim function removes spaces on the right side of a string.
First of all a string is a group of characters. These characters
can be letters, numbers or even special characters like the exclamation
mark or the ampersand. This group of characters summarize within
quotations are stored in a variable. The RTrim function removes
extra blank spaces only on the right side of a string. The purpose
of Rtrim is that it returns a string without trailing spaces. Using
RTrim function we can manipulate and work with string that variables
hold.
Note :- The HTML automatically removes extra blank spaces
in this view.
The Syntax of the RTrim function is :-
Example#1 :-
Code :-
dim txt
txt=" This is a beautiful day! "
document.write(RTrim(txt))
Output :-
" This is a beautiful day!"
|
Example#2 :-
Code :-
<%
'Declare variable
Dim myString
myString ="Good day!"
%>
Output :-
"Good day!" |
Example#3 :-
Code :-
<%
response.write """" & RTrim(" This
is A Test! ") & """"
%>
Output :-
" This is A Test!" |
Example#4 :-
Code :-
<%
=RTrim(" A sentence with extra spaces on both sides.
")
%>
Output :-
A sentence with extra spaces on both sides.
|
|