09-21-2007 2:40 PM
Hi,
I have an integare variable which appears as 0 in dialog program output screen. How do I clear this variable? With CLEAR, I am not able to clear 0.
Thanks,
Ashish
09-21-2007 3:59 PM
If your requirement is not to display zero values,
write 😕 val non-zero.
09-21-2007 2:44 PM
09-21-2007 3:56 PM
Move intfield to charfield no-zero.
Now output this charecter field.
Regards
Vasu
09-21-2007 3:59 PM
If your requirement is not to display zero values,
write 😕 val non-zero.
09-21-2007 4:09 PM
thanks..but this is for a dialog program where I have defined it as integer..I can not change it to character because I have to do some calculations by using integer.
thanks,
Ashsih
09-21-2007 4:36 PM
You have a character field on screen and later move that value to integer while doing calculations. You need to make sure that the CHAR field is validated correctly in order to accept only integer values.
09-21-2007 8:38 PM
Clearing a variable with "clear" statements means exactly: setting the variable to its initial value. Initial value for integers is zero.
If you want to put this fields directly on a screen try a field of type NUMC (N) - a type for integer values represented by characters.
regards