Forum Discussion
Marsha_R
Champion Level 3
2 years agoMake sure that recordNo is defined as a persistent variable. Otherwise the value is lost every time you log out.
AMR013
2 years agoContributor
Marsha_R ,
I did think my value was getting lost after logging out, so I printed out the recordNo value when I logged back in via Log.Message(recordNo) and the value persisted from when I first saved it earlier in the script.
Since I noticed my problem line worked if I commented out Lines a - b, Lines 1 - 5, and Line c - d and start the test from Line 10 as long as re-defined recordNo, I tried creating a new variable, recordNo2, setting it to the recordNo value, and then using recordNo2 for Line 10, but still doesn't recognize it.