cancel
Showing results for 
Search instead for 
Did you mean: 

How do read an embedded file object in PowerDesigner via VBScript?

0 Kudos

I have created a PowerDesigner extension which contains an ExtendedSubObject in which I am embedding various text files, such as logs and JSON schemas.

I am able to see the contents of the files by invoking the "obj.Edit()" method on the embedded file. This opens it in the local default editor. However, I want to access the contents of the text files programmatically in order to do things with them.

Is there a way to get the contents of the files? I tried using the "obj.Content" property, but it returns Hex code only. I could translate the Hex into ASCII (and indeed, I've done so), but I was wondering if there is a better way to do this.

Any help will be appreciated.

- j.

Accepted Solutions (0)

Answers (0)