FDepth (LabVIEW Manager Function)

int32 FDepth(path);

Purpose

Computes the depth, or number of component names, of a path.

Parameters

Name Type Description
path Path Path whose depth you want to determine.

Return Value

int32, indicating the depth of the path, which can contain the following values.

Value Description
–1Badly formed path.
0Path is the root directory.
1Path is in the root directory.
2Path is in a subdirectory of the root directory, one level from the root directory.
n–1Path is n–2 levels from the root directory.
NPath is n–1 levels from the root directory.