Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE Server - Updating Controls
Message
De
05/06/1998 19:25:31
Stewart Lane
Injection Footwear Corp.
Miami, Floride, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
OLE Server - Updating Controls
Divers
Thread ID:
00105413
Message ID:
00105413
Vues:
60
I am new to working with OLE servers and am looking for some
basic code to connect to an OLE server and to be able to
tweak the properties of a control inside a form. The server
is a an application that came compiled an an .exe file.
When I go into it, I can click on a control and press a hot
key and I get a message indicating the referance name of the
control. This is COOL. I can even put it on the clip board.

What I need to know is how to start communicating with it.

I have been reading lots of literature but I'm still confused.

Are the steps essentially...?

1) Connect to the server
2) create an object instance (createobject)
3) get the object (getobject)
4) then manipulate properties
5) release

When I received the application and ran its installation,
did it install itself into the Windows registry as an ole
server or did it at least install its ole objects into the
registry?

I think I'm supposed to start by using createobject. But
specifically what I want to do is this: They have a sales
order entry screen and I have already linked my specific
screen for entering in case packs of shoes by sizes (we're
a shoe manufacturer) as well as figuring total pairs, sales
order line cost, etc.

What I meant by the link is that their software lets me
associate my VFP form with theirs through a utility they
provide. Then on their std button bar, there is an option
to call mine up. Once my screen appears, the user can interact
with either.

I want to then take my cost value and put it back into
their cost field which I have the ole referance name to using
the hot key above (using the value property). Can someone outline
the steps if I'm wrong above and show me a couple of commands
for doing so?

Thanks MUCH!!!!
Répondre
Fil
Voir

Click here to load this message in the networking platform