Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to keep graphics in Word
Message
From
10/08/2007 17:33:25
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
10/08/2007 17:05:46
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01247489
Message ID:
01247539
Views:
29
>>oWd.Selection.Range.SetRange(owd.selection.range.end, owd.selection.range.end)
>>
>>pretty much selects the point after the last character. Though I'm not quite sure that this works, because it's still eating my last paragraph. Maybe it needs another .Select at the end of the line - next thing to try.
>>
>>Nope, doesn't do anything. This does:
>>
>>owd.selection.range.characters(owd.Selection.Range.Characters.Count).Select
>>
>>selects the last character. As close to nothing as it gets. The .selection.range.start and .end seem to be read only - no error if I try to change them, but no effect either.
>
>Work on Range, not Selection (always). For this problem, they the Collapse method.

Thanks - this helped. The .collapse() is among the most unintuitive names, I'd never guess what it does :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform