ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / String functions
  • Special cases
  • NoSpace and UNICODE
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns a character string without the space characters:
  • from the left and right side of the initial string.
  • WINDEVWEBDEV - Server code within the string.
Example
NoSpace("   3.75 Euros   ")   // Returns "3.75 Euros"
NoSpace("Abra ca da bra", sscInside)   // Returns "Abracadabra"
Syntax
<Result> = NoSpace(<Initial string> [, <Position>])
<Result>: Character string
String without spaces.
<Initial string>: Character string
Initial string from which the leading and trailing spaces will be removed. This character string is not modified.
<Position>: Integer constant
Position of the spaces to be removed. This position can correspond to one of the following constants:
sscAllRemoves all spaces from the initial string.
Equivalent to sscRight + sscLeft + sscInside.
sscInsideRemoves spaces within the initial string.
sscLeftRemoves spaces from the left side of the initial string.
sscOutside
(Default value)
Removes spaces from both sides of the initial string.
Equivalent to sscRight + sscLeft.
sscRightRemoves spaces from the right side of the initial string.

WEBDEV - Browser codePHP This parameter is not available.
Remarks

Special cases

  • Left can also be used to remove spaces from the right side of the string.
  • Right can also be used to remove spaces from the left side of the string.
  • Non-breaking spaces: Non-breaking spaces (constant NBSP or character <160>) are not removed by the function NoSpace. To remove them, use NoRightCharacter with the ESP constant.

NoSpace and UNICODE

If the string passed as a parameter is an ANSI string, the result will be an ANSI string.
If the string passed in parameter is in Unicode format, the result will be in Unicode format.
Remark: If the result of the NoSpace function used on an ANSI string is assigned to a Unicode string (and vice versa), ANSI/Unicode conversion will be implicitly performed.
For more details, see Unicode management.
Business / UI classification: Neutral code
Component: wd300vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/17/2024

Send a report | Local help