Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Focus Method does not work in IE Automation
Message
From
27/07/2016 01:39:20
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01638679
Message ID:
01638714
Views:
43
>>>Am working on Auto-Filling in a Web Page with Form Fields via IE Automation. Due to the nature of the Web Page, several of the Fields need to be filled-in via Sending Keys. Prior to Sending the Keys, need to set the Focus to a particular Form Field. Problem is the Focus method does not appear to be working in IE 11. Have seen mention of this online.
>>>
>>>Anyone dealt with this issue?
>>
>>If your have code like somecontrol.someevent(), you must change it into somecontrol.someevent(.T.) in newer versions of IE. Actually, any parameter will do, but you must provide one. For whatever reason I prefer .T. You can read more about this problem at http://www.west-wind.com/wconnect/weblog/ShowEntry.blog?id=912
>
>Thank you (and Rick Stahl)! - this fixed the problem

You're welcome.
Previous
Reply
Map
View

Click here to load this message in the networking platform