[Stackoverflow] [Progress OpenEdge ABL] How to get 10 digit value in integer format?

Status
Not open for further replies.
T

Thiru Malai

Guest
I tried to get 10 digit format value from integer(actual format is 4 digit). But its trimming prefix zero and return the same value.

Let me share what I tried.

DEFINE VARIABLE idata AS INTEGER NO-UNDO.
DEFINE VARIABLE iValue AS INTEGER NO-UNDO.

idata = 111.

iValue = INTEGER(STRING(idata, "99999999999")).

DISPLAY iValue.


May I know what is wrong here? and way to get an answer for my question?

Continue reading...
 
Status
Not open for further replies.
Top