你好~我也正想知道这个问题。我知道要用VB或者别的语言调用ProModel要用到Active X的语言。可是我试了下,不知道怎么连不上。比如说4 O, d r7 E+ m2 S( F
Sub ProModel01()
5 O8 h8 L: B! t4 m$ B* z7 O! h9 vDim pmObject As ProModel.CProModel
- _/ s+ {- I2 U% }: @# Z7 LDim pmDataObject As ProModel.CProModelData
: k+ [/ N) f7 B$ @9 z. ESet pmObject = CreateObject("ProModel")) U7 Y. `' ]% ~6 c$ d$ M
Set pmDataObject = CreateObject("ProModelData"), d5 t. x! Q+ \' l. z6 V, g- m
pmDataObject.Populate
0 H& D5 L5 f0 z0 Y) ?pmDataObject.SelectMainRecordByName 1, "MyLocation"
; i: I. q: k2 T2 A; K7 S1 _Set pmObject = Nothing
4 u* `2 s" A2 ?Set pmDataObject = Nothing6 _/ s; M+ p; _' l: y( p: X0 }
End Sub; Q- o( e. d8 {8 r( @, J5 ~! b9 V1 A
他就报错说用户定义类型未定义,指的是ProModel.CProModel,我想知道怎么解决,怎么定义它呢??求高人指点,万分感谢啦 |