Skip to Content
avatar image
Former Member

Show zero in type i variable

Hello all,

I have a requisite to show de '0.0' in a screen field of a type i variable. Is this possible or do i have to change de type of the variable?

Regards,

Pedro Bessa

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 15, 2009 at 06:05 PM

    It's impossible to use an integer variable to show floating point values. You might want to use TYPE p DECIMALS 1.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 16, 2009 at 09:47 AM

    Hey Pedro,

    Output style depends on the screen field declaration. So if you are using a database table field in the declaration, the output style will correspond to that particular field's style.

    So I would suggest you find a DB field whose domain is similar to "TYPE p DECIMALS 1". This will solve the output style problem.

    Hope this helps!!

    Cheers,

    Shailesh.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks all,

      Messed up with the program, changed the variable to char,

      Poorly resolved 😔

      Regards