Help Center

AfxPathRemoveExtensionfunction

Removes the file name extension from a path, if one is present.

String ManagementfunctionAfxPath.incdocumented

Syntax

FUNCTION AfxPathRemoveExtension (BYREF wszPath AS CONST WSTRING) AS DWSTRING

Parameters

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

Return value

The changed path.

Description

Removes the file name extension from a path, if one is present.

Reference

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