你好~我也正想知道这个问题。我知道要用VB或者别的语言调用ProModel要用到Active X的语言。可是我试了下,不知道怎么连不上。比如说
- O( e' g. U0 a) X6 s% o/ |Sub ProModel01()6 R4 W- d$ K* W( c
Dim pmObject As ProModel.CProModel6 E9 w3 `$ }0 V" D. ]
Dim pmDataObject As ProModel.CProModelData3 G4 L* J* j1 |* @5 e+ w
Set pmObject = CreateObject("ProModel")
) U7 a* h/ \/ l' l [# E# k0 R3 ISet pmDataObject = CreateObject("ProModelData")
W2 o; {/ z/ s- U/ VpmDataObject.Populate; R: x" M! V4 @6 f7 _, A$ g
pmDataObject.SelectMainRecordByName 1, "MyLocation"
* j1 @0 u, L; ]0 A1 H4 HSet pmObject = Nothing
7 e, d2 Y, A" ]0 r; pSet pmDataObject = Nothing" ]( i4 k, W% Y. } z l# ~2 }
End Sub
/ W, e5 Z* M% U- j- O他就报错说用户定义类型未定义,指的是ProModel.CProModel,我想知道怎么解决,怎么定义它呢??求高人指点,万分感谢啦 |