PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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
    WINDEVUniversal Windows 10 App found inside the string.
    New in version 20
    WINDEVUniversal Windows 10 App found inside the string.
    WINDEVUniversal Windows 10 App found inside the string.
Versions 17 and later
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 17
Universal Windows 10 App This function is now available for the Windows Phone applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App 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.
Universal Windows 10 AppJava 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.
Universal Windows 10 AppJava 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.
Universal Windows 10 AppJava 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.
Component : wd250vm.dll
Minimum version required
  • 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
04 Dec. 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
27 Oct. 2016