HI, when I output Print data from LocalStorage, If I were to output again, instead of overwriting the data that has already been output, it just creates another list of data below the previous list of data. Is there a way of stopping this? Please see attached picture
There are two separate blocks of concatenation that share some of the same variables which are set to output via a condition set earlier in the calculations (As seen in the first line of both blocks…If Trg>0 Then… If Tra>0 Then…) I do understand that “If”, and after the first block of concatenation is output, and then the second block of concatenation is output, it (the second block) will already have unwanted data contained and output along with the list of wanted data.
What I have found is, that even if I were to have one block of concatenation , because the LocalStorage Array datv={CTP: Numc, Ra: RFb, Rh: RFc, Rt: Rfd, Rf: Tolx, Ru: Rff, Re: BMb} is being loaded up with data via a For Loop, on each press of the Function Button (Calc) it two repeats the same output. If I could find out how to overwrite instead of repeat for this then ,maybe I could do the same for my first scenario.
Thanks
Will.
I just used the format command in AppStudio’s Code Window (right click to do it yourself) to clean up the formatting of the code.
This doesn’t look like AppStudio issue, but rather code which needs to be carefully reviewed and debugged.
Stash a copy of this code someplace safe, then simplify it until you understand what is going on. You should be able to figure this out when you do that.