FMakePath (LabVIEW Manager Function)

Path FMakePath(path, type, [volume, directory, directory, ..., name,] NULL);

The brackets indicate that the volume, directory, and name parameters are optional.

Purpose

Creates a new path. If path is NULL, this function allocates and returns a new path. Otherwise, path is set to the new path, and this function returns path. If an error occurs or path is not specified correctly, the function returns NULL.

When you finish using a path, dispose of it using FDestroyPath.

Parameters

Name Type Description
path Path Parameter in which FMakePath returns the new path if path is not NULL.
type int32 Type of path you want to create. If fAbsPath, the new path is absolute. If fRelPath, the new path is relative.
volume PStr (Optional) Pascal string containing a legal volume name. An empty string indicates to go up a level in the path hierarchy. Use this parameter only for absolute paths on Mac OS X or Windows.
directory PStr (Optional) Pascal string containing a legal directory name. An empty string indicates to go up a level in the path hierarchy.
name PStr (Optional) File or directory name. An empty string indicates to go up a level in the path hierarchy.
NULL PStr Marker indicating the end of the path.

Return Value

The resulting path. If you specified path, the return value is the same as path. If an error occurs, this function returns NULL.