Jump to content

Trim Whitespace function: Difference between revisions

From LabVIEW Wiki
Started page
 
mNo edit summary
 
Line 1: Line 1:
{{stub}}
{{stub}}
{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/String{{!}}String palette|type=function|icon=String Palette - Trim Whitespace.png}}
{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/String{{!}}String palette|type=vi|icon=String Palette - Trim Whitespace.png}}


The '''Trim Whitespace''' function removes all ASCII white space (spaces, tabs, carriage returns, and linefeeds) from the beginning, end, or both ends of the string. The Trim Whitespace VI does not remove double-byte characters.
The '''Trim Whitespace''' function removes all ASCII white space (spaces, tabs, carriage returns, and linefeeds) from the beginning, end, or both ends of the string. The Trim Whitespace VI does not remove double-byte characters.

Latest revision as of 16:19, 20 July 2020

Object information
Owning palette(s) String palette
Type VI
Requires Basic Development Environment
Icon

The Trim Whitespace function removes all ASCII white space (spaces, tabs, carriage returns, and linefeeds) from the beginning, end, or both ends of the string. The Trim Whitespace VI does not remove double-byte characters.

The default is to remove white space from both ends of the string.

Usage

The location enum includes:

0 Both—Removes white space from both ends of the input string.
1 Start of string—Removes white space from the start of the input string.
2 End of string—Removes white space from the end of the input string.

History

Version Change(s)
LabVIEW 2018 More info to come.

See Also

External Links