EXPORT fuction to Display a Blank

Jansen

New Member
Relatively new to Progress programming. The code I am working with is as follows:

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


EXPORT var1

The user would like to the integer to disply as a blank. When I use the display function, it works fine, however when EXPORT to a file is used, I keep getting a pescky 0. Any help would be appreciated. Thanks.
 
Dude work this into your application syntax.

DO: /* output */
OUTPUT TO VarPath. /* path of output doc eg. 'c:\temp' */
DEFINE STREAM stDoc
OUTPUT STREAM stDoc TO VarPath. /* open stream output */
DISPLAY
/* field list */
.
OUTPUT CLOSE. /* important to close the stream - DO NOT leave just hangin*/
END. /* output */

Regards
 
Hi Jansen,

Export statements exports data always in a standard format.

From the progress 4GL online help:
The data is in a standard format to be read back into Progress. All character fields are enclosed in quotes ( "") and quotes contained in the data you are exporting are replaced by two quotes ( ""). A single space separates one field from the next. An unknown value is displayed as an unquoted question mark (?).

regards,

Casper.
 
Back
Top