Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - annavp

Pages: [1]
1
I tried this piece of code and I get
"could not open file" message

code:

[size=10]Set  MyRep = CreateObject("EA.Repository")

If Not myrep.OpenFile(ctEAPName) = False Then
 MsgBox "Repository opened!"
Else
 MsgBox "Could not open file!"
End If[/size]

anna

2
Yep

model exists!!!

I tried this one and that works but I cna't use this in a script.

   Dim myrep As New EA.Repository      
   myrep.OpenFile ctEAPName

anna

3
Hi,

I am working with a registered version  4.00. I read in the release notes that the CreateObject bugs should be fixed as from version 3.60.

I'm creating a .VBS (visual basic script) file and I want to access an existing EA repository. I use the following script:
____________________________________________

Set  MyRep = CreateObject("EA.Repository")
myrep.OpenFile ctEAPName
......
____________________________________________

I also tried
____________________________________________

Set MyRep = GetObject("", "EA.Repository")
____________________________________________

but I got the same problem.

Any thoughts?

Thanx, anna

Pages: [1]