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
Difference between revisions of "Demo-ExtractRelative"
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
'Postion is now R3, the 3rd cell after the text "Mytable" | 'Postion is now R3, the 3rd cell after the text "Mytable" | ||
TAG POS=R3 TYPE=TD ATTR=TXT:* EXTRACT=TXT | TAG POS=R3 TYPE=TD ATTR=TXT:* EXTRACT=TXT | ||
+ | 'The following line is relative to the TAG POS=R3 line => extracts "4" | ||
+ | TAG POS=R1 TYPE=TD ATTR=TXT:* EXTRACT=TXT | ||
+ | 'The following line is relative to the TAG POS=R1 line => extracts "5" | ||
+ | TAG POS=R1 TYPE=TD ATTR=TXT:* EXTRACT=TXT |
Revision as of 10:43, 3 May 2008
Preceding TAG commands may be used for relative positioning of the following TAG or extraction.
VERSION BUILD=4300525 TAB T=1 TAB CLOSEALLOTHERS URL GOTO=http://www.iopus.com/imacros/demo/v6/extract2/ ' 'Classic extraction will count the number of cells from the TOP of the page 'So the 1st cell of the table is the 8th cell on the page TAG POS=26 TYPE=TD ATTR=TXT:* EXTRACT=TXT ' 'Better to use positioning relative to the TAG command that 'appears just before the EXTRACT command ' TAG POS=1 TYPE=DIV ATTR=TXT:MyTable 'Postion is now R3, the 3rd cell after the text "Mytable" TAG POS=R3 TYPE=TD ATTR=TXT:* EXTRACT=TXT 'The following line is relative to the TAG POS=R3 line => extracts "4" TAG POS=R1 TYPE=TD ATTR=TXT:* EXTRACT=TXT 'The following line is relative to the TAG POS=R1 line => extracts "5" TAG POS=R1 TYPE=TD ATTR=TXT:* EXTRACT=TXT