Page 1 of 1

Export (copy into file) through script...

Posted: 2006-09-18 12:47:21
by ABNormal
i'ld like to create a file where to copy what a script find.
actually my script starts and put what i'm looking for into fieldComment.
then i select all the text saved into comment frame, copy it, opena blank file and paste text into it.

i'ld like to know if there is an istruction that, put into a script, can directly "export" a GetField(fieldComment) into an external file.

thx

Posted: 2006-09-19 09:40:29
by antp
You can create a TStringList object and use its SaveToFile method.
Another solution is to add "debug" in the "uses" section of the script, and call the SaveToFile procedure: SaveToFile(GetField(fieldComment), 'c:\file.txt');

Posted: 2006-09-19 11:54:11
by ABNormal
Thank you, Merci, Danke, Grazie, Gracias, Shukra,........

i've found the way to collect multiple records and directly create a new catalogue.
in comment i create a XML formatted text, and then i save it all as a 'filename.xml' into catalogue folder. so i have not to repeat same searches for entire archives, i rip it all in one shot!

last night Antoine saved my life!
what a powerful program