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 "!ENDOFPAGE"
Line 31: | Line 31: | ||
Why use endofpage? Without defining the end of page, iMacros would not know when the first table is ended and the new table (new day) starts as the number of entries per day changes. | Why use endofpage? Without defining the end of page, iMacros would not know when the first table is ended and the new table (new day) starts as the number of entries per day changes. | ||
− | If you want to use a button or a link as !ENDOFPAGE, you should tag it with | + | If you want to use a button or a link as !ENDOFPAGE, you should tag it with TAG ... EXTRACT=TXT, to avoid following the link or "pushing" the button. In that case, do not forget to use SET !EXTRACT NULL, to clear the extract variable '''before''' the real extract. |
=== See Also === | === See Also === | ||
[[!TAGSOURCEINDEX]] | [[!TAGSOURCEINDEX]] |
Revision as of 15:08, 17 March 2009
Uses the !TAGSOURCEINDEX variable to define the end of page for iMacros. A search for a TAG element does not go below this limit.
Value
Integer value, e. g. from {{!TAGSOURCEINDEX}}
Set By
[ ] Internal
[X] SET
Internal means that the iMacros program itself sets the value of the variable during program run. SET means that the user can set this value via the SET command inside a macro.
Examples
Macro code snippet
'First, define END of the data range TAG POS=1 TYPE=TD ATTR=TXT:Do.<SP>05.02.09 SET !ENDOFPAGE {{!TAGSOURCEINDEX}} 'Extraction anchor TAG POS=1 TYPE=TD ATTR=TXT:Mi.<SP>04.02.09 'Extraction 'We increase the myloop var until we hit "end of page" TAG POS=R{{myloop}} TYPE=TD ATTR=CLASS:planline* EXTRACT=TXT
Why use endofpage? Without defining the end of page, iMacros would not know when the first table is ended and the new table (new day) starts as the number of entries per day changes.
If you want to use a button or a link as !ENDOFPAGE, you should tag it with TAG ... EXTRACT=TXT, to avoid following the link or "pushing" the button. In that case, do not forget to use SET !EXTRACT NULL, to clear the extract variable before the real extract.