Help Center

AfxPathRemoveBackslashExfunction

Removes the trailing backslash from a given path.

String ManagementfunctionAfxPath.incdocumented

Syntax

FUNCTION AfxPathRemoveBackslashEx (BYREF wszPath AS CONST WSTRING) AS DWSTRING

Parameters

NameDescription
wszPathA string that contains the path from which to remove the backslash.

Return value

The changed path. If no trailing backslash was found, the string is unchanged.

Description

Removes the trailing backslash from a given path. This function differs from PathRemoveBackslash in that it accepts paths with "\\", "\\?" and "\\?\\UNC" prefixes.

Example

DIM dws AS DWSTRING = AfxPathRemoveBackslashEx("c:\a\b\File\")

Reference

  • Include file AfxPath.inc
  • Defined in AfxNova/AfxPath.inc:1083
  • Documented in String Management/Path and Url Procedures.md
  • Topic: Path and Url procedures