• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

an error occurred when attempting to retrieve a value

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • an error occurred when attempting to retrieve a value

    in one of my applications i have a form with a field that is optional for the user to enter. we are getting a lot of warning messages on the "errors" section of valence. how can i setup this program so we dont get the warning message. when trying to retrieve the value...

  • #2
    I assume you are using NAB and that this is based off one of the EXNABBTN template program? If so, you can toggle gWriteErrLog variable *on and *off. So in your case, you would want to set it to *off before calling the procedure to retrieve the value...you can turn it back *on if need be afterwards if you wish.

    Comment


    • #3
      perfect. that is what i need. thanks

      Comment


      • #4
        I added the below code into my rpg program. However, when i look at the warnings i am still seeing : VV00070 - An error occurred when attempting to retrieve a value for "PRODSCH".

        gWriteErrLog = *Off;
        UserInput.ProdSched = GetFormChar(cFormProdSch);
        gWriteErrLog = *On;

        Comment


        • #5
          Sorry, disregard my prior post - I see you're using GetFormChar(). That should definitely be skipping the exception message when gWriteErrLog is *off. If you still see the message being written, let us know.

          Comment

          Working...
          X