Desktop productivity for business analysts and programmers

SAS EG VB Help

Reply
N/A
Posts: 0

SAS EG VB Help

Hi,

Just wondering if anyone knows of any referenece materials for VB communicating with SAS EG4 .Basically stuff relating to this:

Set mobjEnterpriseGuideApp = CreateObject("SASEGObjectModel.Application.4")

Its hard to find help on how to access the process flows and ordered lists from vb?

Any help will be appreciated. Thanks.
N/A
Posts: 0

Re: SAS EG VB Help

Hi,

In this link: http://support.sas.com/documentation/onlinedoc/guide/ you can find information about VB Scripting for Enterprise Guide.

Download EG 4.1 specific material at this link: Automating SAS Enterprise Guide with Scripts. Return always to this documentation for examples: OLE Automation Reference Help

Also, at this link: http://support.sas.com/kb/ you can do a keyword search for "VBScript" to retrieve some examples.

As for your specific request, I do not have a working example for a Process Flow/Ordered List Item, however, I do have a Query example:

Dim prjName
prjName = "C:\temp\myProject.egp" 'Project Saved in EG 4.1

Dim objGuide
Set objGuide = CreateObject("SASEGObjectModel.Application.4") 'EG 4.1

Dim prjObject
Set prjObject = objGuide.Open(prjName,"")

Dim ProjectItems
Set ProjectItems = prjObject.ProjectItems

Dim Query
Set Query = ProjectItems("Query for CLASS")

Good Luck!
N/A
Posts: 0

Re: SAS EG VB Help

Ok, Thanks. I will have a look. There seems to be a lot of information... so it should be good.

Thanks Again.
Ask a Question
Discussion stats
  • 2 replies
  • 266 views
  • 0 likes
  • 1 in conversation