超级版主
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
|
【转帖】getsetarrayindexvalue.txt
get/setarrayindexvalue
hi,
have an array in a cdmis artrogram
assign/v1 = array(1,2.4,"+z",5)
i want to read and change this variable from within visual basic
'all objects reviously dim'd and linked
set cdvar = dmisart.getvariablevalue("v1")
result = cdvar.getarrayuerbound
'result will say 4, doing this just to make sure the variable
'is an array and available anyway
set cdi2 = cdvar.getarrayindexvalue(2)
cdi2.stringvalue = "-x"
cdvar.setarrayindexvalue 2, cdi2 <-'at this oint i get an error message "server error"
'and cdvar.getarrayuerbound will show 0
dmisart.setvariablevalue "v1", cdvar ' never got here u to now
' this should imort the changed array into the c-dmis artrogram
does anyone have an idea, i really areciate any comment because i'm really stuck here.
thanks
__________________
借用达朗贝尔的名言:前进吧,你会得到信心!
[url="http://www.dimcax.com"]几何尺寸与公差标准[/url]
|