Solved

Adding log file to script (VBscript)

Posted on 2007-12-04
5
3,000 Views
Last Modified: 2011-10-03
How would I add a Word log file that cotains the output of the code below?
Sub Main
Dim mdl As Model
Dim myview As View
Set mdl = DiagramManager.ActiveDiagram.ActiveModel
For Each myview In mdl.Views
myview.SetViewDDL(myview.ViewDDL)
Next
End Sub

Open in new window

0
Comment
Question by:froggy_bill
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 12

Expert Comment

by:chandru_sol
ID: 20408385
Is this vbscript or vba code used in macros?

What is the output you get from this?

regards
Chandru
0
 

Author Comment

by:froggy_bill
ID: 20408587
Is technically called SAX Basic from Embarcadero's ERStudio. It is based on VBScript
0
 
LVL 12

Expert Comment

by:chandru_sol
ID: 20408640
0
 

Author Comment

by:froggy_bill
ID: 20414293
Yes, but this only apparently works on IBM platforms. I need it to work on Oracle or SQL
0
 
LVL 4

Accepted Solution

by:
MeCanHelp earned 500 total points
ID: 20414892
See if this helps

Sub Main
Dim mdl As Model
Dim myview As View
Const ForAppending = 8

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.OpenTextFile _
    ("c:\report.txt", ForAppending, True)

Set mdl = DiagramManager.ActiveDiagram.ActiveModel

For Each myview In mdl.Views
objTextFile.WriteLine(myview.SetViewDDL(myview.ViewDDL))
Next
End Sub
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question