Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 11:28:28 +0000



Post From: Referencing to Persistent Variable by name NOT working *URGENT*

[2016-02-23 22:18:26]
User972044 - Posts: 154
No this is NOT correct. When autoloop is set to 1, whatever value for persistent variables that you reset in if (sc.Index == 0) block does NOT get reset AND the initial value for persistent variables does NOT start at 0. I just proved it to you in my post Post #4 that when I first ran my program, the initial value for my persistent variable MyCounter which was set up EXACTLY as in your documentation was NOT zero; it was 175XXX as shown in the log which I included in my post. And furthermore, when I tried to initialize them to zero in if(sc.Index == 0){} block, it DID not get reset to zero either, it was set to another number 87XXX as shown in the log which I included in my post Post #4. And this is WHY I was very puzzled why it didn't work.

Did you even read my posts? I would ask you please go back to all my posts that I posted after your post Post #2 and read ALL of them. You will see those are all of my debugging efforts and showing you how the program was not behaving as you described in your documentations. It was only in Post #7 which was posted by you which pointed out to me finally that autoloop needs to be set to 0 for what the documentation described to work and that finally resolved the issue. If you don't believe me, go test it myself. First set autoloop = 1 to see what's the initial value of the persistent variables and whether resetting their values in the if (sc.Index == 0) block works and then set autoloop = 0 to see if it works. And you will see what I am talking about and whoever posted Post #7 was talking about and why I was suggesting your documentation for Persistent Variables would benefit from further clarification.

It's so ironic that you accuse me of not debugging or analyzing my codes and yet you are not even aware how the codes behave in your own platform and you haven't even tested them yourself.

Thanks for your help.
Date Time Of Last Edit: 2016-02-23 22:21:21