08-31-2023 05:42 AM
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
Solved! Go to Solution.
09-01-2023 08:06 AM
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
09-20-2023 07:59 AM
Hi Vassili,
Sorry for this late reply.
Your suggestion is perfectly spot-on. Appreciate it.
Regards,
Kane