你好~我也正想知道这个问题。我知道要用VB或者别的语言调用ProModel要用到Active X的语言。可是我试了下,不知道怎么连不上。比如说
: q4 M/ |& h, m. V& |5 vSub ProModel01()
8 _# n% @, H3 j6 }" l7 HDim pmObject As ProModel.CProModel) W s* a* L; z4 A+ R
Dim pmDataObject As ProModel.CProModelData& g, f6 r& S+ m. E( T4 _# t6 ~
Set pmObject = CreateObject("ProModel")
T* i( n( P+ R3 @4 eSet pmDataObject = CreateObject("ProModelData")
3 y( Y1 c, w+ O( D" p2 d o2 MpmDataObject.Populate" L! X% _& Z' J3 n7 M |
pmDataObject.SelectMainRecordByName 1, "MyLocation"9 n6 F) J& Y/ r$ ^! h7 S1 {
Set pmObject = Nothing
/ {0 {3 y: I9 [Set pmDataObject = Nothing
6 e6 ]9 o5 z5 _/ }! H7 lEnd Sub
) z2 g/ t9 N+ ]4 }+ `他就报错说用户定义类型未定义,指的是ProModel.CProModel,我想知道怎么解决,怎么定义它呢??求高人指点,万分感谢啦 |