Basic Question

atuldalvi

Member
I have below code:

DEFINE VARIABLE vTxt AS CHARACTER FORMAT "x-xx-xx-xxxx" NO-UNDO.

vTxt = "123456789".

Output for display is 1-23-45-6789 &
when i export the value of this variable, o/p is 123456789

Why there is a difference ?
What will be solution if I want to export the same o/p like display statement ?

Thanx.
 

tamhas

ProgressTalk.com Sponsor
Better to avoid the include file. But, in the end, a format is just a string.
 

TomBascom

Curmudgeon
EXPORT exports data in "plain" format. You can specify and override any number of formats for display purposes. EXPORT serves a different purpose -- it is for data interchange. The dashes in the format are just a frill for display purposes, they are not part of the data so EXPORT does not show them.
 
Top