Help Center

AfxPathRemoveBackslashfunction

Removes the trailing backslash from a given path.

String ManagementfunctionAfxPath.incdocumented

Syntax

FUNCTION AfxPathRemoveBackslash (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.

Example

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

Reference

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