WANTS TO MAKE SOFTWARE WITHOUT KNOWLEDGE OF ASP? CLICK HERE
The LTrim function removes spaces on the left side of a string.
In other words,The LTrim function returns a copy of the string argument
with the leading spaces removed from the string: LTrim() - Remove
leading spaces from a string. The string argument is any valid
string expression. If string contains Null, Null is returned.
Note : - The HTML automatically removes extra blank spaces
in this view.
The Syntax of the LTrim function is :-
Example#1 :-
Code :-
dim txt
txt=" This is a beautiful day! "
document.write(LTrim(txt))
Output :-
"This is a beautiful day! "
|
Example#2 :-
Code :-
<%
=LTrim(" A sentence with extra spaces on both sides. ")
%>
Output :-
A sentence with extra spaces on both sides. |
Note :- The ltrim function may appear to remove patterns,
but this is not the case as demonstrated in the following example.
Example#3 :-
Code :-
<%
=Ltrim('xyxzyyyTech', would return 'Tech')
<%
Output :-
'xyz'
|
Note :- It actually removes the individual occurrences of
'x', 'y', and 'z', as opposed to the pattern of 'xyz'.
Example#4 :-
Code :-
<%
= LTrim(" Hello ")
<%
Output :-
"hello " |
Example#5 :-
Code :-
<%
response.write """" & LTrim("
This is A Test! ") & """"
<%
Output :-
"This is A Test! "
|
|