且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

比较提取字符串中的数字

更新时间:2023-02-21 18:38:00

不要做那样的事情!你正在比较字符串,而不是数字!

所以10小于1,依此类推。将它们转换为数字,它应该可以工作。



Don''t do things like that! You are comparing strings, not numbers!
So "10" is less than "1", and so forth. Convert them to numbers, and it should work.

If Convert.ToInt32(curDGV2Cri1) > Convert.ToInt32(Result1.Value) Then