Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Positioning the cursor
Message
From
02/10/2011 16:28:38
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Positioning the cursor
Environment versions
Visual FoxPro:
VFP 5
OS:
Windows 7
Miscellaneous
Thread ID:
01525412
Message ID:
01525412
Views:
80
Hi All:

In the following snippet:
		loDoc = .oWord.documents.OPEN(tcDocument)
		
		lcText = gc_sdate8 + ' ' + alltrim(gc_userid) + ':' + chr(13) + chr(13)

		loRange = loDoc.Range()
		loRange.InsertBefore(lcText)
		
		.oWord.VISIBLE = .T.

		.oword.WINDOWSTATE = wdWindowStateMinimize
		.oword.WINDOWSTATE = wdWindowStateMaximize && this automatically makes the window activated
Ths cursor is positioned BEFORE the inserted text. How do I position it AFTER the inserted text?

Thanks,

Yossi
Next
Reply
Map
View

Click here to load this message in the networking platform