General information
Category:
COM/DCOM and OLE Automation
Title:
Issues with Attachmate Extra!Personal Client
I am currently debugging an application in VFP 6 that writes data to accounts via Attachmate Extra.
The program is fairly simple: Import a text file, open the application and send the data through OLE commands, shut down the application.
I am experiencing problems on two fronts:
Occasionally, Attachmate errors off -- the account is not a working account, or some other message comes up -- and when it does that, I have so far been unable to get feedback from Attachmate to let my program know that it must either quit or backup and reset Attachmate.
FYI, commands are sent using syntax like
oSess = oExt.Sessions.Open("Bank Of America (CACS).edp")
oSess1 = oExt.ActiveSession
WITH oSess1
.Screen.SendKeys( "PF2>" )
.Screen.SendKeys( "" + pc_acctno + "" )
When the error occurs, my program is blind to the fact. It continues to send more data, but Attachmate cannot accept it. I have no way of confirming whether or not it has worked.
I have tried using the commands:
.SelectAll
.Copy
pc_ScrnSht = _ClipText
but if I use them, Attachmate will not return to its routine. I cannot force it to correctly return to the proper fields.
The other problem should be easily correctable, but I haven't found it yet. When I tell the Attachmate application to quit, it asks for confirmation. As this program is supposed to run unattended, this is a bit of a problem.
Can anyone offer some advice?
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only