Skip to main content
WinWedge DDE server settings
Remember to set WinWedge up in DDE Server Mode! See the DDE Server Mode Setup Guide. DDE Application Name: MyServer DDE Topic: MyTopic DDE Command: **\[GRABDATA\]**
FoxPro instructions
FoxPro does not have a “GrabData” command so we must create one. The FoxPro code example on the following page does exactly that. Create a new program module in the CODE section of FoxPro and enter the code on the following page. After you are done entering the code save your work and run the program. What this example does is to set up WinWedge to issue a DDE command [GRABDATA] to your FoxPro application after each data record is received from your serial device. This causes the procedure DoCommand to run which then performs a DDERequest back to the Wedge asking for the data in Field(1) in the Wedge Window. This data is then returned to FoxPro in the variable: MyData. Once the data from the Wedge is in a variable, you can do whatever you like with it by including additional code of your own design.
Last modified on November 3, 2026