M
Mark Givens
Ok, I have read more website tutorials on C# arrays than I really
wanted too and am still completely blured on the subject. I normally
develop websites using PHP/MySql, but have been forced into a bit of
C# after the C# guy had a family emergency.
Anyway, if someone has the time and patience, here is my problem.
We have a form with four numericupdowns. On each click of any
mumericupdown, calculations take place in a couple of for loops based
on the numbers selected and the results are displayed in a textbox.
example of display:
15 30 1.25 64.85
16 30 1.29 66.21
17 30 1.38 65.02
....and so on.
The calculated results need to be placed in an array as they are
produced and then sort the output based on the fouth column of
numbers.
My logic tells me to create an empty array, then add the results of
each line to the array, then when done with the calculations, print
the array sorted by the fourth column. Also, the size of the array
will never be more than 50 or so rows so efficiciency is not at the
top of the priority list.
How is this done in C#??? Multidimensional arrays seemed like a good
choice, but fuzzy on the protocol to set it up and sort.
Any help that is in simple english would be most appreciated! My
brain is still hurting from trying to comprehend some of this
Using VS 2003 Architect if that helps.
Thanks so much,
Mark
wanted too and am still completely blured on the subject. I normally
develop websites using PHP/MySql, but have been forced into a bit of
C# after the C# guy had a family emergency.
Anyway, if someone has the time and patience, here is my problem.
We have a form with four numericupdowns. On each click of any
mumericupdown, calculations take place in a couple of for loops based
on the numbers selected and the results are displayed in a textbox.
example of display:
15 30 1.25 64.85
16 30 1.29 66.21
17 30 1.38 65.02
....and so on.
The calculated results need to be placed in an array as they are
produced and then sort the output based on the fouth column of
numbers.
My logic tells me to create an empty array, then add the results of
each line to the array, then when done with the calculations, print
the array sorted by the fourth column. Also, the size of the array
will never be more than 50 or so rows so efficiciency is not at the
top of the priority list.
How is this done in C#??? Multidimensional arrays seemed like a good
choice, but fuzzy on the protocol to set it up and sort.
Any help that is in simple english would be most appreciated! My
brain is still hurting from trying to comprehend some of this

Using VS 2003 Architect if that helps.
Thanks so much,
Mark