Skip to Content
author's profile photo Former Member
Former Member

how to clear integer variable

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2007 at 02:59 PM

    If your requirement is not to display zero values,

    write :/ val non-zero.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 21, 2007 at 01:44 PM

    hi Ashish,

    the default value of an integer is 0, so bad...

    ec

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2007 at 02:56 PM

    Move intfield to charfield no-zero.

    Now output this charecter field.

    Regards

    Vasu

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 21, 2007 at 07: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.