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 05:26:57
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/05/2005 03:32:58
Evert Meulenkamp
Meulenkamp Automatisering
Hengelo Ov, Netherlands
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:
01016665
Views:
7
>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.

You're welcome. However remove macro substition:

THISFORM.shellExecute.ShellExecute(m.lcPicture, m.lcTempDir, "open")

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform