PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Space characters
  • 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 "\"' character found at the end of a string.
This function is useful for handling full file names when the format of the path is not known with certainty (if the user enters a file path for instance).
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
  • Source character string not ending with "\" or "/",
  • Empty string ("") if <String to check> corresponds to an empty string ("").
<String to check>: Character string (with quotes)
Source string to check.
Remarks

Space characters

Caution: The space characters found before and after <String to check> are deleted (identical to NoSpace).

UncompleteDir 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: No compilation error occurs if the result of an ANSI string is assigned to a UNICODE string (and conversely). However, a WLanguage error will occur at run time.
See Managing UNICODE for more details.
Component : wd240vm.dll
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment