Help Center

AfxPathIsRootfunction

Parses a path to determine if it is a directory root.

String ManagementfunctionAfxPath.incdocumented

Syntax

FUNCTION AfxPathIsRoot (BYREF wszPath AS CONST WSTRING) AS BOOLEAN

Parameters

NameDescription
wszPathA string that contains contains the path to be validated.

Return value

Returns True if the specified path is a root, or False otherwise.

Description

Parses a path to determine if it is a directory root.

Remarks

Returns True for paths such as "\\", "X:\\" or "\\\\server\\share". Paths such as "..\\path2" or "\\\\server\\" return FALSE.

Reference

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