Skip to main content

Default Boolean

  • February 17, 2017
  • 1 reply
  • 0 views

Just wondering why the default condition value does not change even when I assign it to true in the working storage section.

class-id Validator.
       working-storage section.
       01  #Title   string value "Entry Error" static.
       01  validData condition-value value true.
 
I have also tried 01 ValidData type System.Boolean value true.
 
I am trying to set this value to true when I validate my user textbox entries and only then, when the data is invalid set it to false.

1 reply

  • February 17, 2017

Just wondering why the default condition value does not change even when I assign it to true in the working storage section.

class-id Validator.
       working-storage section.
       01  #Title   string value "Entry Error" static.
       01  validData condition-value value true.
 
I have also tried 01 ValidData type System.Boolean value true.
 
I am trying to set this value to true when I validate my user textbox entries and only then, when the data is invalid set it to false.
Never mind, I figured it out. I have static methods and so needed to set the validData to static also.