Returns the contents of the !EXTRACT variable. If the last command was iimPlay and if EXTRACT is used inside a macro iimGetLastExtract returns the extracted text. If the EXTRACT command could not find the extraction anchor, an #EANF# (Extraction Anchor Not Found) message is returned. If there is no EXTRACT command in the macro which was just played, iimGetLastExtract returns an empty string ("").
If in one macro several EXTRACT commands appear, the results are separated by the string [EXTRACT]. If complete tables where extracted, adjacent table elements are separated by the string #NEXT# and ends of table rows are delimited by the string #NEWLINE#.
Syntax
String extract = iimGetLastExtract ( )
Parameters
None
Examples
Display the extracted results from a macro (Visual Basic Script example):
Dim imacros, iret
Set imacros = CreateObject("InternetMacros.iim")
iret = imacros.iimInit()
iret = imacros.iimPlay("myextractmacro")
MsgBox "The extract was: "+ vbNewline + _
imacros.iimGetLastExtract()
iret = imacros.iimExit()
See Also
Page URL http://www.iopus.com/imacros/help/scripting_iimgetlastextract.htm