本文介绍了如何从三个文本框中找到最高数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有三个带有数字的文本框。我想使用一个变量从这些文本框中找到最高编号?
i have three text boxes having numbers .i want to find highest no from these text boxes using one variable?
推荐答案
- 设置变量等于(转换为 int ,请参阅 int32.Parse [ ^ ]方法)第一个文本框的文本属性。
- 如果变量小于(转换)第二个文本框文本属性,则将其设置为等于后者。
- 如果变量小于。 ..(好吧,我想你现在就明白了。)
- set the variable equal to the (converted to int, see then int32.Parse[^] method) first text box's Text property.
- if the variable is less than (converted) second text box Text property then set it equal to the latter.
- if the variable is less than... (well, I suppose you get it, now).
更多推荐
如何从三个文本框中找到最高数字?
发布评论