Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to AddObject Ole-objects to a form at runtime?
Message
From
23/05/2005 03:32:58
Evert Meulenkamp
Meulenkamp Automatisering
Hengelo Ov, Netherlands
 
 
To
19/05/2005 05:42:16
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 6 SP3
OS:
Windows '98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01015240
Message ID:
01016653
Views:
8
Dear Cetin,

LOCAL lcPicture
lcPicture = vpict.picture && Get name and location of the file
lcTempDir = SYS(2023)
THISFORM.shellExecute.ShellExecute("&lcPicture", "&lcTempDir", "open")

I found out that this is all the code I needed, after addobjecting a shellexecute-object to the form. The use of the right verb is critical for starting the right server. "open" starts the windows viewer for pictures, faxes etc. (desired) and "edit" starts MS-paint or MS-Notepad.

Thanks again for your support!

Evert.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform