Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Labview Code Interface Reference Manual.pdf
Скачиваний:
33
Добавлен:
29.05.2015
Размер:
1.13 Mб
Скачать

Chapter 7 File Manager Functions

Determining a Path Type

FGetPathType

syntax MgErr FGetPathType(path, typePtr)

FGetPathType returns the type (relative, absolute, or not a path) of the specified path.

 

Parameter

Type

Description

 

path

Path

Path whose type you want to determine.

 

typePtr

int32 *

Address at which FGetPathType stores the type.

 

 

 

*typePtr can have the following values:

 

 

 

fAbsPath: The path is an absolute path.

 

 

 

fRelPath: The path is a relative path.

 

 

 

fNotAPath: The path is the canonical

 

 

 

invalid path or an error occurred.

 

 

 

See the Pointers as Parameters section of

 

 

 

Chapter 1, CIN Overview, for more information

 

 

 

about using this parameter.

returns

MgErr, which can contain the errors in the following list.

 

Error

Description

 

 

 

mgArgErr

A bad argument was passed to the function. Verify path.

 

 

 

 

 

FIsAPathOfType

syntax Bool32 FIsAPathOfType(path, ofType);

FIsAPathOfType determines whether the specified path is a valid path of the specified type (relative or absolute).

Parameter

Type

Description

path

Path

Path that you want to compare to the specified type.

ofType

int32

Type that you want to compare to the path's type.

 

 

type can have the following values:

 

 

fAbsPath: Compare the path's type to

 

 

absolute.

 

 

fRelPath: Compare the path's type to

 

 

relative.

LabVIEW Code Interface Reference Manual

7-38

National Instruments Corporation

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]