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
  • Spaces
  • UncompleteDir and UNICODE
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Removes the '/' or '\' characters from the end of a string, if necessary.
This function is useful for handling full file names when the path format is unknown (e.g., when the user enters a file path).
New in version 2025
WEBDEV - Browser code This function is now available in browser code.
Example
WEBDEV - Server codePHPAjax
Res = UncompleteDir("c:\temp\")         // Renvoie "c:\temp"
Res = UncompleteDir("c:\temp")          // Renvoie "c:\temp"
Res = UncompleteDir("\\CCS\Rep2\User\") // Renvoie "\\CCS\Rep2\User"
Res = UncompleteDir("/root/file/")      // Renvoie "/root/file"
Res = UncompleteDir("")                 // Renvoie ""
Syntax
<Result> = UncompleteDir(<String to check>)
<Result>: Character string
  • <String to check> without the '\' o '/' characters at the end,
  • Empty string if <String to check> corresponds to an empty string ("").
<String to check>: Character string
Character string to check.
Remarks

Spaces

Attention: Spaces before and after <String to check> are removed (identical to the NoSpace function).

UncompleteDir 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.
Note If the result of the UncompleteDir 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 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help