|
Post by Stefan on Mar 11, 2021 11:54:47 GMT -5
If you're starting out with macros, you may well wonder.
Especially as some commands/actions change a line's line number and other commands/actions change a line's line pointer.
To see the difference, as well as the way excluded lines, and special lines like TABS, BNDS, COLS, etc are treated, try LNumPtr.MACRO
|
|
|
Post by George on Mar 11, 2021 15:39:17 GMT -5
Stefan: Robert's pointers are good. I know it's confusing, but we're kind of hamstrung by the internal storage methodology. If you think its confusing in macros, try handling all the internals (especially in the macro interface).
George
|
|
|
Post by Stefan on Mar 17, 2021 3:43:54 GMT -5
I understood the principles from the description in the documentation. But when I started with macros, I just wanted something to visualise the difference between the two and how, for example, excluded lines were actually handled.
It made it obvious to me when writing macros which actions cause previously saved LINE POINTERS and which actions cause previously saved LINE NUMBERS to become inaccurate. As recommended, I work mostly with line POINTERS, but even now, in larger macros, I tend to assign a line HANDLE if I want to track an individual line.
|
|