PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Space characters
  • CompleteDir function 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
Adds (if necessary) the character corresponding to the directory separator ("\" or "/" according to the runtime platform) at the end of a character string.
This function is useful for building full file names when the path format is unknown (if the user types a file path for example).
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App This function is now available for the Windows Phone applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the 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 JavaPHPAjaxUser code (UMC)
Res = CompleteDir(FilePath) + "Document.Doc"
Res = CompleteDir("c:\temp")           // Returns "c:\temp\"
Res = CompleteDir("c:\temp\")          // Returns "c:\temp\"
Res = CompleteDir("\CCS\\Dir2\user\")  // Returns "\CCS\\Dir2\user\"
Res = CompleteDir("")                  // Returns ""
Windows Mobile
Res = CompleteDir(FilePath) + "Document.txt"
Res = CompleteDir("\temp")      // Returns "\temp\"
Res = CompleteDir("\temp\")     // Returns "\temp\"
Res = CompleteDir("")           // Returns ""
WINDEVWEBDEV - Server codeLinux
Res = CompleteDir(" /root/file ")      // Returns "/root/file/"
Res = CompleteDir("")                  // Returns ""
Syntax
<Result> = CompleteDir(<String to Check>)
<Result>: Character string
  • Character string that ends with the directory separator character.
  • Empty string if <String to Check> corresponds to an empty string ("").
<String to Check>: Character string (with quotes)
Source string to check and to complete if necessary.
Remarks

Space characters

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

CompleteDir function 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: If the result on an ANSI string is assigned to a UNICODE string (and conversely), the conversion will be implicitly performed.
See Managing the UNICODE format for more details.
Related Examples:
Handling text files Unit examples (WINDEV): Handling text files
[ + ] Handling "text" files with WINDEV:
- Create a text file
- Write into a text file
- Read in a text file
Handling text files Unit examples (WEBDEV): Handling text files
[ + ] This example explains how to handle "non HFSQL" files with WEBDEV and it allows you to:
- Create a text file
- Write into a text file
- Read in a text file
Handling text files Unit examples (WINDEV Mobile): Handling text files
[ + ] Handling external "text" files:
- Create a text file
- Write into a text file
- Read in a text file
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
Java wd230java.jar
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment