The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
Demo-ExtractRelative
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Preceding TAG commands may be used for relative positioning of the following TAG or extraction.
VERSION BUILD=10.4.28.1074 TAB T=1 TAB CLOSEALLOTHERS URL GOTO=http://demo.imacros.net/Automate/Extract2 'Classic extraction will count the number of cells from the TOP of the page 'extract 2 TAG POS=13 TYPE=TD ATTR=TXT:* EXTRACT=TXT ' 'Better to use positioning relative to the TAG command that 'appears just before the TAG/EXTRACT command ' TAG POS=1 TYPE=TH ATTR=TXT:MyTable 'Postion is now R3, the 3rd cell after the text "Mytable" TAG POS=R3 TYPE=TD ATTR=TXT:* EXTRACT=TXT 'Also extract the following numbers 4 and 5 TAG POS=R1 TYPE=TD ATTR=TXT:* EXTRACT=TXT TAG POS=R1 TYPE=TD ATTR=TXT:* EXTRACT=TXT ' 'Alternative solution ' TAG POS=1 TYPE=TH ATTR=TXT:MyTable TAG POS=R3 TYPE=TD ATTR=TXT:* EXTRACT=TXT TAG POS=1 TYPE=TH ATTR=TXT:MyTable TAG POS=R4 TYPE=TD ATTR=TXT:* EXTRACT=TXT TAG POS=1 TYPE=TH ATTR=TXT:MyTable TAG POS=R5 TYPE=TD ATTR=TXT:* EXTRACT=TXT ' 'Negative positioning => move to the LEFT and/or TOP of the anchor TAG POS=1 TYPE=TD ATTR=TXT:3 'Move two cells left => extract the number "1" TAG POS=R-2 TYPE=TD ATTR=TXT:* EXTRACT=TXT