几何尺寸与公差论坛

 找回密码
 注册
查看: 741|回复: 0

【转帖】getsetarrayindexvalue.txt

[复制链接]
发表于 2009-4-6 19:30:02 | 显示全部楼层 |阅读模式
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-22 23:10 , Processed in 0.035445 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表