Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to AddObject Ole-objects to a form at runtime?
Message
De
23/05/2005 03:32:58
Evert Meulenkamp
Meulenkamp Automatisering
Hengelo Ov, Pays-Bas
 
 
À
19/05/2005 05:42:16
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 6 SP3
OS:
Windows '98
Database:
Visual FoxPro
Divers
Thread ID:
01015240
Message ID:
01016653
Vues:
9
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform