Save extracted data
Top  Previous  Next

Related example macros: Demo-Extract, Demo-Extract-Table

There are two methods to retrieve extracted data.

SAVEAS [PRO and SCRIPTING Edition]
You can save extracted data directly to a file by adding a
SAVEAS TYPE=EXTRACT command manually to the macro. All items that were extracted before the SAVEAS command are saved to the specified file in one row like

"item1", "item2", "item 3", ...

As you can see, the
[EXTRACT] tags, which are inserted to distinguish results from different EXTRACT commands, are substituted by commas. The SAVEAS command erases the content of the !EXTRACT variable afterwards. With the next start of the macro or the next round of a loop, a new line is added to the file.

iimGetLastExtract() [SCRIPTING Edition]
You can also use the
iimGetLastExtract() of the Scripting Interface to access the extracted data in your application. Potential [EXTRACT] tags are included in the returned string and can be used to separate different extraction results - see the included extract-2-database.vbs.




Page URL http://www.iopus.com/imacros/help/extract_save_data.htm