PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Spaces
  • UncompleteDir 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
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).
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad 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
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 ""
Windows Mobile
Res = UncompleteDir("\temp\") // Returns "\temp"
Res = UncompleteDir("\temp")  // Returns "\temp"
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 (with quotes)
Character string to check.
Remarks

Spaces

Caution: The leading and trailing spaces in <String to check> are removed (identical to 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 as a parameter is a UNICODE string, the result will be a UNICODE string.
Remark: If the result of UncompleteDir on an ANSI string is assigned to a UNICODE string (and vice versa), the conversion will be implicitly performed.
For more details, see Managing UNICODE.
Component: wd260vm.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment