查看单个帖子
旧 2007-11-26, 11:20 AM   #1
huangyhg
超级版主
 
huangyhg的头像
 
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
huangyhg 向着好的方向发展
默认 array in basic script

vektor
can any body explain how to create and use lbound array in pc dmis basic script the helpfile on this subject is a little thin


i want to create a script that read measurments values and then sort them
to get the lowest value

Please help me
craiger_ny
You don't need to sort to get the minimum number in an array, nor do you need a script. What exactly is it you are doing? I may not understand what is going on here. Are you doing this in VB or in PCDMIS?

vektor
I am doin this in pc dmis internal Basic script editor.

I want to get old values from a external txt file and a fresh value from pcdmis .
Compare the values and return the lowest back to pcdmis .
And put some updated values to the txt file.


craiger_ny
PCDMIS can read in the values from the text file (how are they delimited?) and can populate an array and return the minimum and can also write them into a text file. There is no need for a script unless the delimiting of the text file creates more PCDMIS code than is desireable.
huangyhg离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)