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
WINDEVWEBDEV - Server codeReports and QueriesAndroidAndroid Widget JavaUser code (UMC)PHPAjax
Res = UncompleteDir("c:\temp\")         // Returns "c:\temp"
Res = UncompleteDir("c:\temp")          // Returns "c:\temp"
Res = UncompleteDir("\\CCS\Dir2\User\") // Returns "\\CCS\Dir2\User"
Res = UncompleteDir("/root/file/")      // Returns "/root/file"
Res = UncompleteDir("")                 // Returns ""
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

Warning: The spaces before and after <String to check> are removed (identical to the function NoSpace).

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.
Remark: 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: 10/18/2024

Send a report | Local help