如何从三个文本框中找到最高数字? [英] how to find highest number from three text box?
本文介绍了如何从三个文本框中找到最高数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有三个带有数字的文本框。我想使用一个变量从这些文本框中找到最高编号?
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'sText
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).
这篇关于如何从三个文本框中找到最高数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文