Maptitude GISDK Help |
Attempts to locate the given files along the search path set by SetSearchPath().
paths = LocateDBs(array names)
Argument |
Contents |
names |
Array of file names without paths |
An array of the same length as the input array. For each name, if the file was found in the search path, the fully-qualified path (including file name and extension) is given in the output array. If the name was not found, the output array element is set to null.
Although the name of this function implies that it is just for databases, in fact it is useful for locating files of any type.
paths = LocateDBs({"ccstreet.cdf"})
if paths[1] != null then do
layers = GetDBLayers(paths[1])
AddLayer("my_map", "Streets", paths[1], layers[2])
end
Error Type |
Meaning |
Error |
The input array was invalid |
Function |
Summary |
Specifies the search path used by Maptitude to locate files |
©2025 Caliper Corporation | www.caliper.com |