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).
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
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.