Delete Spaces in String Programmatically

Updated Nov 8, 2019

Reported In

Software

  • LabVIEW

Issue Details

I know I can delete white spacesĀ from the beginning, end, or both ends of string. But I want to delete spaces between strings. How can I do this ?

Solution

You can delete spaces in between strings by using Search and Replace String function. The search string changes depends on which you want to delete, half-width space or full-width space.
See the following example.
In input string, there is half-width space between "?" and "!", full-width space between "Hello" and "World" and also between "World" and "?".


WAS THIS ARTICLE HELPFUL?

Not Helpful