Core Function TrimRight

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> TrimRight( <expression>, <chars> ) </pre> === Description === Strip whitespace from the end of a string. === Parameters === ==== expression ==== The string to use. ==...")
 
(Return Value)
Line 19: Line 19:
 
=== Return Value ===
 
=== Return Value ===
  
Success: Returns 1.
+
Success: Returns trimmed string.
  
Failure: Returns 0.
+
Failure: Returns old string.
  
 
=== Remarks ===
 
=== Remarks ===

Revision as of 19:25, 1 December 2011

TrimRight( <expression>, <chars> )

Contents

Description

Strip whitespace from the end of a string.

Parameters

expression

The string to use.

chars

Optional; A string containing chars to be removed.

Return Value

Success: Returns trimmed string.

Failure: Returns old string.

Remarks

None.

Example

$str = "          The quick brown fox              ";
MsgBox(  "'"   .   TrimRight($str)    .    "'"    );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox