Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using UNISYS/Attachmate/INFOConnect as an object
Message
From
10/03/2000 10:15:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Using UNISYS/Attachmate/INFOConnect as an object
Miscellaneous
Thread ID:
00344189
Message ID:
00344189
Views:
147
I am using INFOConnect to transfer VFP data to another system. The code below has worked just fine until Office 2000. Office 2000 uses a file extension of .adp in Access applications - You guessed it - when I go to open an INFOConnect session which also uses .adp extension along comes Access. If I can find a way to just activate the accessory manager without opening a session the same way that INFOConnect works when you just run the INFOConnect .exe then I can write code to copy the .adp file to a .xxx or whatever and open the session with the .xxx . This part is a cakewalk. I just can't figure out how to just open the accessory manager without also opening a session. Also, if I create a form and add a ActiveX(OLE Control) Accessory Mgr Bookmark and Accessory Mgr Session show up as object types but if I select either I get a "OLE error code 0x80010105: The server threw an exception" error. Any suggestions?
***********************
SET DELETED ON
sysObject = CREATEOBJECT( 'accmgr.system' ) && get system
IF TYPE( 'sysObject' ) != 'O' then && check for object creation
RETURN
ELSE
openstr = "sysObject.sessions.OPEN('c:\infocn32\accmgr32\" + ALLTRIM(password.session) + ".adp')"
sessionobject = &openstr
sessionobject.ACTIVATE && activate session
sessionobject.VISIBLE = .T.
sessionscreen = sessionobject.SCREEN && get screen set object
ENDIF
Reply
Map
View

Click here to load this message in the networking platform