Overview | Statement List


读取下一个文件的目录标题

Synopsis

DNEXT/IFEND,label:[,IFERR,label:]

Description

Reads the header information of the next file in the directory. The header information which is obtained is stored in the respective global parameters listed below:

Global Parameters

&CAREA

&CRDATE

&CRTIME

&DESCR

&DIR

&DIRPTH

&FLEN

&FNAME

&FORMAT

&FSTAT

&LADATE

&LATIME

&LMDATE

&LMTIME

&OWNER

&PCLASS

 

 

NOTE: On UNIX systems, when the variable UGII_OPTION is set to LOWER or LONAME, DNEXT will skip files with uppercase characters.

If the file header read is that of a subdirectory, the subdirectory may be opened with the SOPEN statement and the subsequent DNEXT statement will read from that subdirectory.

When the end of a subdirectory is reached, the subdirectory must be closed using SCLOSE and the subsequent DNEXT statement will read from the previous directory.

Parameters

Parameter

Description

IFEND,label:

Specifies a label to which the program jumps when the end of the directory is reached.

IFERR,label:

Specifies a label to which the program jumps if an error occurs.

 


Copyright ©2015 胡君NX二次开发官网(www.UGapi.com) QQ:85585969 All Rights Reserved.