IsAbsolutePath()

Summary

Tests to see if the pathname is an absolute pathname.

Changes

Added to Version 2019.

Syntax

answer = IsAbsolutePath(string path)

Argument Contents
path The path to test

Returns

"True" if path is an absolute pathname, or "False" otherwise.

Notes

  • An absolute pathname is a full, not a relative, pathname.

Examples

folder = RunMacro("G30 Tutorial Folder")
is_path = IsPathAbsolute(folder)
ShowMessage("It is " + is_path + " that " + folder + " is an absolute pathname")
result = IsPathAbsolute("C:\\projects")
// result = "True"

See Also

Function Summary
GetAbsolutePath() Converts a relative pathname to an absolute pathname.
GetRelativePath() Converts an absolute pathname to a relative pathname.