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).
Example
WEBDEV - Server codePHPAjax
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 (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