DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Export data to an external text file

Solved!
Go to solution

Hi All,

 

Just wondering if there are any functions in DIAdem script that are capable of exporting data (like parameters) to a text file in another folder?  What I'd like to do with that is to figure out what parameters are missing from a data file when I load the data file on to the data portal in DIAdem.  Many thanks.

 

Regards,

 

Kane

0 Kudos
Message 1 of 3
(426 Views)
Solution
Accepted by topic author Kane_Lok

Hi Kane,

 

the most simple way would be imo the text stream (example from Diadem 2019):

Dim fso, MyFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile= fso.CreateTextFile(ScriptWritePath & "\testfile.txt", True)
MyFile.WriteLine("This is the first line")
MyFile.Close

The path can be set free by user, and the content created like a text from single parameters (values) or properties.

 

Something similar can be done in Excel, again with FSO object.

 

Does it fit to your expectations?

Greetings,

Vassili

0 Kudos
Message 2 of 3
(371 Views)

Hi Vassili,

 

Sorry for this late reply.  

 

Your suggestion is perfectly spot-on.  Appreciate it.

 

Regards,

 

Kane

0 Kudos
Message 3 of 3
(307 Views)