Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dde link
Message
From
12/05/2006 08:28:57
 
 
To
11/05/2006 13:05:32
Rasheed Al Rasheed
Riyadh Armed Forces Hospital
Riyadh, Saudi Arabia
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01121032
Message ID:
01121265
Views:
10
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform