Now, it displays:Code:GameFile.WriteLine(ElapsedTimeBox.Text & " : " & DataValue)
4 : 254
28 : 254
It displays the correct DataValue but it now displays the end time seconds along with the elapsed time. Why is it doing this? :(
Printable View
Now, it displays:Code:GameFile.WriteLine(ElapsedTimeBox.Text & " : " & DataValue)
4 : 254
28 : 254
It displays the correct DataValue but it now displays the end time seconds along with the elapsed time. Why is it doing this? :(
Hey guys! I'm still stuck on why this code adds the second's value of my end time. If you know how to fix this problem please let me know!
Can't tell what is going on based on that little piece of code, could be getting called a second time from somewhere else, or perhaps there is another instance of code somewhere that writes to the file. Best bet is to set a break point and step through the code line by line and see what is happening.
I have 3 different songs and the same code is in both (different text files and declared differently)! I'll try setting a break point! Thanks DataMiser
It still takes the second's value from the end time... even though I clearly stated to only take the text in the elapsed time text box!
Step through the code check the contents of your vars along the way [the ones related to the file] and see what you have there.
Hey!
I added breakpoints and I don't see why the text file saves the end time's seconds time. It clearly says to only take the elasped_time textbox value.
Also, is there a way to make the text file read the values in numerical order (1-100)? My values display in a random order.
Thanks!
Did you step through the code after the breakpoint and check the values of the vars related?
What do you mean by reading in numerical order? The file should be read and displayed as it was written originally.