Help Center

AfxGetFileNamefunction

Parses a path/filename and returns the file name portion. That is the text to the right of the last backslash (\) or colon (:), ending just before the last period (.).

WindowsfunctionAfxWin.incdocumented

Syntax

FUNCTION AfxGetFileName (BYREF wszPath AS WSTRING) AS DWSTRING
Also documented as AfxFileName — one description covers them all.

Parameters

NameDescription
wszPathThe path/filename string.

Description

Parses a path/filename and returns the file name portion. That is the text to the right of the last backslash (\) or colon (:), ending just before the last period (.).

Reference

  • Include file AfxWin.inc
  • Defined in AfxNova/AfxWin.inc:600
  • Documented in Windows/Windows Procedures.md
  • Topic: Windows Procedures