10-23-2012 08:38 PM
Hi all,
Consider the possibility of using while condition.
How do i set counter to 1, read time and update database and also increase counter by 1.
Use the while condition to allow only update of database while counter =1
Thank you 🙂
10-23-2012 09:23 PM
You are going to have to explain a little more. Where is this counter coming from? Is it really a counter or just a flag? Explain in more detail exactly what you are trying to accomplish.
10-23-2012 09:32 PM
I'm actually doing a project on e-learning. So i'm trying to create a "Random Number" from the date/time the user have logged in. I want the "Result" in the front panel to be store in the database. But because the seconds from the time kept running, thus, the total result kept storing into the database, which I do not want that to happen. What exactly i want is just that particular date/time they logged in to be stored in the database. 🙂 Thank you:)
10-24-2012 04:12 AM
I think, you are trying something different.
Still your requirement was not clear.
For my understanding.
You are trying to use 'While Loop' 'i' terminal/condition.
If so, the 'i' will increase its value by 1 for each iteration. And you can't change this.
But you can use another 'Shift Register - Numeric I32' for your 'i' terminal replacement. But based on your second post you need a Boolean Shift Register/Condition to 'Update Database?' (Yes or No).
Regards,
Yogesh Redemptor
10-24-2012 05:53 AM
Sounds like you just need a flag that somebody just logged in. Use a case structure with the flag.