几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   PC-DMIS二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=153)
-   -   【转帖】Basic script question (http://www.dimcax.com/hust/showthread.php?t=1571)

huangyhg 2007-11-26 11:17 AM

【转帖】Basic script question
 
vektor
Hello!
I am making a little script which is reading a text file
and put each line in a variable
my problem is that i want to compare the variables with each other to find the lowest value

Don Ruggieri
In the end, what exactly are you after.

If you are trying to find the lowest value, that is one problem.

From the looks of your code, you are actually trying to sort the data from lowest to highest, that is a different problem.

Do you need to write it out to a file, or is it sufficient to display the lowest value? Do you need to know what position it was in when you read it (relative to the other data)?
__________________
"I ain't as good as I once was, but I'm as good once as I ever was" - Toby Keith


所有的时间均为北京时间。 现在的时间是 11:16 PM.