Using Export to Display Blank

Jansen

New Member
Hello,
Relatively new to Progress development. Here is a simple example of what I am dealing with.

DEFINE VAR var1 AS Integer FORMAT "ZZZ" INIT 0 NO-UNDO.
OUTPUT TO var1.txt.

EXPORT var1

The user wants the integer to diplay as a blank. When I use DISPLAY, it works fine, but as soon as I use the EXPORT function to a file, I get a pesky 0. Any help would be appreciated. Thanks
 
Hi,

with the export statement the format phrase is ignored to produce data in a standard format to be read back into Progress.

If you want the format 'ZZZ' then do a put statement in stead of export:

Code:
DEFINE VAR var1 AS Integer FORMAT "ZZZ" INIT 0 NO-UNDO.
OUTPUT TO var1.txt.
PUT VAR1.

Regards.

Casper.
 
Back
Top