Difference between revisions of "Manuals/calci/TRIM"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> '''TRIM'''(Value) where, '''Value''' - is the text from which you removed spaces. </div> ---- <div id="1S...")
 
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left">
+
=TRIM(Value)=
 
 
'''TRIM'''(Value)
 
  
 
where,
 
where,
 +
*<math>Value</math> a text value from which spaces are to be removed.
  
'''Value''' - is the text from which you removed spaces.
+
TRIM() removes the extra leading or trailing spaces from the given text, excluding the single spaces between words.
 
 
</div>
 
----
 
<div id="1SpaceContent" class="zcontent" align="left">
 
 
 
Calci removes all space from text.
 
  
</div>
+
== Description ==
----
 
<div id="7SpaceContent" class="zcontent" align="left">TRIM does not remove space between two words.</div>
 
----
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
  
TRIM
+
TRIM(Value)
  
</div></div>
+
e.g. TRIM(" Good Morning") removes two leading spaces from the text and returns '''Good Morning''' as a result.
----
 
<div id="8SpaceContent" class="zcontent" align="left">
 
  
Lets see an example in (Column1, Row1)
+
*TRIM function is used to remove the irregular spacing from the text.
 +
*<math>Value</math> is a text value and should be enclosed in double quotes (e.g. "TEXT"), when directly entered in the command.
  
<nowiki>=TRIM("  Zcubes")</nowiki>
+
== Examples ==
  
TRIM removes the leading space from Zcubes.
+
Consider the following examples that demonstrate the use of TRIM function:
  
</div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Syntax </div><div class="ZEditBox"><center></center></div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Remarks </div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Examples </div></div>
 
----
 
<div id="11SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Description </div></div>
 
----
 
 
<div id="2SpaceContent" class="zcontent" align="left">
 
<div id="2SpaceContent" class="zcontent" align="left">
  
 
{| id="TABLE3" class="SpreadSheet blue"
 
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
|- class="even"
| class=" " |
+
| class=" " | '''Function'''
| Column1
+
| class="  " | '''Output'''
| Column2
+
 
| Column3
 
| Column4
 
 
|- class="odd"
 
|- class="odd"
| class=" " | Row1
+
| class="sshl_f" |TRIM(" Zcubes")
| class="sshl_f" | Zcubes
+
| class="sshl_f" |Zcubes
| class=" " |
+
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| class="  " | Row2
 
| class="  SelectTD ChangeBGColor SelectTD" |
 
<div id="2Space_Handle" class="zhandles" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="2Space_Copy" class="zhandles" title="Click and Drag over to AutoFill other cells."></div><div id="2Space_Drag" class="zhandles" title="Click and Drag to Move/Copy Area.">[[Image:copy-cube.gif]]  </div>
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="odd"
 
| Row3
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| Row4
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="odd"
 
| class=" " | Row5
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
 
|- class="even"
 
|- class="even"
| Row6
+
| class="sshl_f" |TRIM(" TRIM  Function ")
| class=" " |
+
| class="sshl_f" |TRIM Function
| class=" " |
 
| class=" " |
 
| class=" " |
 
 
|}
 
|}
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
== See Also ==
----
+
 
 +
*[[Manuals/calci/CLEAN | CLEAN]]
 +
 
 +
== References ==
 +
 
 +
*[http://en.wikipedia.org/wiki/Trim_(programming) Trimming]
 +
*[http://en.wikipedia.org/wiki/String_(computer_science) String]

Revision as of 19:40, 6 February 2014

TRIM(Value)

where,

  • a text value from which spaces are to be removed.

TRIM() removes the extra leading or trailing spaces from the given text, excluding the single spaces between words.

Description

TRIM(Value)

e.g. TRIM(" Good Morning") removes two leading spaces from the text and returns Good Morning as a result.

  • TRIM function is used to remove the irregular spacing from the text.
  • is a text value and should be enclosed in double quotes (e.g. "TEXT"), when directly entered in the command.

Examples

Consider the following examples that demonstrate the use of TRIM function:

Function Output
TRIM(" Zcubes") Zcubes
TRIM(" TRIM Function ") TRIM Function

See Also

References