PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Special cases
  • NoSpace function and UNICODE
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns a character string without the space characters:
  • found on the right and on the left.
  • Versions 20 and later
    WINDEVWEBDEV - Server codeWindows MobileUniversal Windows 10 App found inside the string.
    New in version 20
    WINDEVWEBDEV - Server codeWindows MobileUniversal Windows 10 App found inside the string.
    WINDEVWEBDEV - Server codeWindows MobileUniversal Windows 10 App found inside the string.
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
NoSpace("   3.75 Euros   ")   // Returns "3.75 Euros"
Versions 20 and later
NoSpace("Abra ca da bra", sscInside)   // Returns "Abracadabra"
New in version 20
NoSpace("Abra ca da bra", sscInside)   // Returns "Abracadabra"
NoSpace("Abra ca da bra", sscInside)   // Returns "Abracadabra"
Syntax
<Result> = NoSpace(<Initial String> [, <Position>])
<Result>: Character string
Character string without space characters.
<Initial String>: Character string (with quotes)
Initial character string whose spaces to the right and to the left will be removed. This character string is not modified.
<Position>: Integer constant
Versions 20 and later
Position of space characters to delete. This position can correspond to one of the following constants:
sscRightDeletes the space characters found on the right of initial string.
sscLeftDeletes the space characters found on the left of initial string.
sscOutside
(Default value)
Deletes the space characters found outside the initial string.
Equivalent to sscRight + sscLeft.
sscInsideDeletes the space characters found inside the initial string.
sscAllDeletes the space characters found in the initial string.
Equivalent to sscRight + sscLeft + sscInside.
WEBDEV - Browser codeAndroidAndroid Widget Universal Windows 10 AppJavaPHP This parameter is not available.
New in version 20
Position of space characters to delete. This position can correspond to one of the following constants:
sscRightDeletes the space characters found on the right of initial string.
sscLeftDeletes the space characters found on the left of initial string.
sscOutside
(Default value)
Deletes the space characters found outside the initial string.
Equivalent to sscRight + sscLeft.
sscInsideDeletes the space characters found inside the initial string.
sscAllDeletes the space characters found in the initial string.
Equivalent to sscRight + sscLeft + sscInside.
WEBDEV - Browser codeAndroidAndroid Widget Universal Windows 10 AppJavaPHP This parameter is not available.
Position of space characters to delete. This position can correspond to one of the following constants:
sscRightDeletes the space characters found on the right of initial string.
sscLeftDeletes the space characters found on the left of initial string.
sscOutside
(Default value)
Deletes the space characters found outside the initial string.
Equivalent to sscRight + sscLeft.
sscInsideDeletes the space characters found inside the initial string.
sscAllDeletes the space characters found in the initial string.
Equivalent to sscRight + sscLeft + sscInside.
WEBDEV - Browser codeAndroidAndroid Widget Universal Windows 10 AppJavaPHP This parameter is not available.
Remarks

Special cases

  • Left can also be used to delete the space characters found on the right.
  • Right can also be used to delete the space characters found on the left.
  • Unbreakable space characters: The unbreakable space characters ESP constant or <160> character) are not deleted by NoSpace. To delete them, use NoRightCharacter associated with the ESP constant.

NoSpace function and UNICODE

If the string passed in parameter is in ANSI format, the result will be in ANSI format.
If the string passed in parameter is in UNICODE format, the result will be in UNICODE format.
Note: If the result on an ANSI string is assigned to a UNICODE string (and conversely), the conversion will be implicitly performed.
See Managing the UNICODE for more details.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Exemplo NoSpace(EDT_xml)
IF NoSpace(EDT_xml) = "" THEN
Info("Favor Preencher Xml")
END

//Blog com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/11/aula-959-windev-string-31-nospace.html
https://www.youtube.com/watch?v=47yoSaDsbKM
De matos
Dec. 04 2016
Exemplo NoSpace
EDT_exclui_inicio_final=NoSpace(EDT_com_Espaco)
EDT_exclui_a_esquerda=NoSpace(EDT_com_Espaco,sscLeft)
EDT_exclui_a_direita=NoSpace(EDT_com_Espaco,sscRight)
EDT_exclui_todos=NoSpace(EDT_com_Espaco,sscAll)

// Blog com Video e Exemplo

http://windevdesenvolvimento.blogspot.com.br/2016/10/aula-953-windev-string-26-nospace.html

https://www.youtube.com/watch?v=WzcKkSSQwTg

De matos
Oct. 27 2016