官术网_书友最值得收藏!

Comparing values

In the next stage of the process, we will compare values. To do this, enter the following after the closed curly brace/semicolon beneath the preceding line:

sampLabel.Text = CompareValuesInList(compareValues, doubleVals[0], doubleVals[1], doubleVals[2]).ToString();

Here, CompareValuesInList is a function that you can create. Then you'll pass in compareValues. In other words, when this line says compareValues, the entire CompareValues block from above will be passed into the body of the function. You've never done this before. You're passing around entire blocks of code! Next, you enter doubleVals[0] to get the first value, and then you can copy (Ctrl + C) and repeat this for the other ones at index 1 as doubleVals[1] and at index 2 as doubleVals[2] because there are three of them.

主站蜘蛛池模板: 札达县| 德清县| 鄂托克旗| 河北省| 西安市| 都江堰市| 浦北县| 镇远县| 衡东县| 湖州市| 沐川县| 诏安县| 图们市| 油尖旺区| 莎车县| 天等县| 铜山县| 宣武区| 甘孜县| 兰州市| 利津县| 达尔| 冀州市| 修武县| 台东县| 龙胜| 穆棱市| 炉霍县| 曲水县| 体育| 博罗县| 镇巴县| 深水埗区| 抚宁县| 施秉县| 旺苍县| 阳东县| 嘉义市| 阿拉尔市| 岢岚县| 辽中县|