Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Any Method in Tracking the index of a value of a variable within a for loop

$
0
0

Hi

as the title states I just want to know is their anyway to find the specific index of a local variable when in iteration.

currently I have a variable which gathers a calculation between two times in a database and another variable which finds the difference of the two times, they are both doubles. mainly I want to know the index of when a specific value appears within the iteration. e.g say I get a value of 55.4 and and its after the first two values are calculated and I want to record the value and its index being 2, How would I implement this. Any Pointers/Solutions ?

*Note the Variables are not arrays they are local variables.

Thanks in Advance.



Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>