Search the Community
Showing results for tags 'extending range'.
-
Okay this is likely due to my not properly understanding objects. I'm using _Word_DocRangeSet to extend a range (in this case to the end of a line). The issue I've encountered is that extending one range seems to affect another range. It may be that an object can't be assigned or equated. In any event the program and test file (place in the same directory) illustrate the issue. Test 1 - shows the documentation for _Word_DocRangeSet correctly shows how the range is extended and the assigned result is extended. No problem here just part of my learning. Test 2 - like Test 1 but no assignment of the result from _Word_DocRangeSet is needed. Again correct and my learning. Test 3 - here is where the issue is. After an assignment to a new object the old one seems to be affected by _Word_DocRangeSet. This I don't understand (perhaps the assignment is really a namespace pool and points to the same structure like aliases <-- wild guess). Test 4 - shows that using .Select can extend the range and leave the original range alone. Any hints/pointers on what's going on appreciated. Thanks WordRangeTesting v1c.au3 Test for WordRangeTesting v1c.docx
- 39 replies
-
- _word_docrangeset
- extending range
-
(and 1 more)
Tagged with: