PreviousNextIndex

FILE-INFO system handle

A handle to an operating system file.

Syntax

FILE-INFO [ :attribute ] 

attribute
Attributes

Example

After you set the value of the FILE-NAME attribute, you can read the values of the other attributes. For example:

r-osfile.p
DEFINE VARIABLE os-file AS CHARACTER NO-UNDO FORMAT "x(60)" LABEL "File". 
REPEAT: 
  SET os-file WITH FRAME osfile-info. 
  FILE-INFO:FILE-NAME = os-file. 
  DISPLAY FILE-INFO:FULL-PATHNAME FORMAT "x(60)" LABEL "Full Path" 
    FILE-INFO:PATHNAME FORMAT "x(60)" LABEL "Path" 
    FILE-INFO:FILE-TYPE LABEL "Type" 
    WITH FRAME osfile-info SIDE-LABELS TITLE "OS File Info". 
END. 

Notes

OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex