DirItem Method (FTP)


10.2, PLBCMP GUI Only

 

The DirItem method retrieves the next item from the last file list retrieved using the Dir method. This method uses the following format:

 

[label]

{object}.DirItem

[GIVING {return}]

 

Where:

label

Optional. A Program Execution Label.

object

Required. A FTP that has been declared.

return

Optional. A Character String Variable that returns the data for the next item in the last list of files retrieved using the Dir method.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. The EOS flag is set to TRUE if the {return} variable is too small and the data must be truncated.

  2. The OVER flag is set to FALSE if the method returns data. The OVER flag is set if there is no more data available.

  3. The ZERO flags are always set to the FALSE state.

  4. The {return} variable is set to a NULL variable if there was an error detected.

 

 

See Also: FTP Control Methods, Method Syntax



PL/B Language Reference Dir Method (FTP) Get Method (FTP)