Kbase P110068: 4GL/ABL: How to determine the size of a file from the 4GL
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  03/02/2009 |
|
Status: Verified
GOAL:
4GL/ABL: How to determine the size of a file from the 4GL
GOAL:
How to programmatically determine the size of an OS file using 4GL?
GOAL:
How to access the FILE-SIZE attribute of the FILE-INFO system handle using 4GL?
FACT(s) (Environment):
All Supported Operating Systems
Progress 9.x
OpenEdge 10.x
OpenEdge Category: Language (4GL/ABL)
FIX:
To determine the size of a file from the 4GL use the FILE-SIZE attribute of the FILE-INFO system handle. For example:
FILE-INFO:FILE-NAME = "C:\OpenEdge\WRK101C\SomeFileName.ext".
MESSAGE 'File Size = ' FILE-INFO:FILE-SIZE VIEW-AS ALERT-BOX INFO BUTTONS OK.