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

Chapter 7 File Manager Functions

 

mgArgErr

 

Badly formed path or path is root directory.

 

mFullErr

 

Insufficient memory.

 

 

 

 

FNamePtr

 

 

syntax

MgErr

FNamePtr(path, name);

FNamePtr copies the last component name of a specified path to the address specified by name. This routine does not allocate space for the returned data, so name must specify allocated memory of sufficient size to hold the component name.

Parameter

Type

Description

path

Path

Path whose last component name you want to

 

 

determine.

name

PStr

Address at which FNamePtr stores the last

 

 

component name as a Pascal string. This address

 

 

must specify allocated memory of sufficient size to

 

 

hold the name.

 

 

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

Badly formed path or path is root directory.

 

mFullErr

Insufficient memory.

 

 

 

FVolName

syntax MgErr FVolName(path, vol);

FVolName creates a path for the volume of a specified absolute path by removing all but the first component name from path.

Note: You can pass in the same path variable for the volume path that you use for path. Thus, the following variations for calling this function work.

err = FVolName(path, vol);

/* the parent path is returned in a second path variable */

LabVIEW Code Interface Reference Manual

7-30

National Instruments Corporation

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