Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dde link
Message
De
12/05/2006 08:28:57
 
 
À
11/05/2006 13:05:32
Rasheed Al Rasheed
Riyadh Armed Forces Hospital
Riyadh, Arabie Saoudite
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Divers
Thread ID:
01121032
Message ID:
01121265
Vues:
16
>Hi All
>
>I have an external program 'MubasherPro' which access the local stock market to display live data. Through excel you can access the data by defining the cells such as C12:
> =MProTadawulDdeServer|'BO1020'!'23'*1
>
>Is there is a way where I can link live to the above server to put the data in a VFP table.
>
>Your help is much appreciated which may help me recover some of my losses.
>
>Thanks

VFP has a rich set of functions to establish DDE communication.
Those function names begin with "DDE", so you can easily find them in documentation.

First, you need to use DDEInintiate() to connect to the server.
(I also recommend to call DDESETOPTION("SAFETY", .F.) before this)
Then you can use DDERequest() to read data from server.
Or you can use DDEAdvise() to set a notify link - every time some item of data is changed a handler in your application will be triggered.

Hope this helps.
/A new technology turns into completely outdated stuff before you have a time to read "Getting Started..." section.
/If there are some "system programmers" then others are unsystematic.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform