Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Reading values from a form in an .EXE via OLE
I have a VFP 5.0 executable program called ABC.EXE. It is OLE server enabled.
In it is a form called abcform with a field called abcfield.
How do I read its value?
I want to be able to type a command in the command window to print it to the console using '?' or set it to a variable oField1.
I actually have the complete hierarchical reference to this field / control.
It is:abcform.abcpageframe1.page3.txtfabcpr
I thought I had to use createobject to read and then tweak properties to later edit the field value but none of my syntax has yet worked.
I checked the registry and as far as I can tell, ABC.EXE has been registered.
Just in case it wasn't, I ran abc.exe /regserver.
Can someone help get me started? I have been struggling for days.
Thank-you in advance,
Stew
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement