How to Use DDE Between Visual Basic and FoxProLast reviewed: June 21, 1995Article ID: Q113477 |
The information in this article applies to:
- Standard and Professional Editions of Microsoft Visual Basic for Windows, version 3.0
SUMMARYThis article outlines the steps necessary to initiate dynamic data exchange (DDE) between a FoxPro Macro and a Visual Basic application at run time. Specifically, this article demonstrates how to:
MORE INFORMATIONA destination application sends commands through DDE to the source application to establish a link. Through DDE, the source provides data to the destination at the request of the destination or accepts information at the request of the destination. The following example shows how to establish a DDE conversation between a FoxPro application and a Visual Basic application. Preparing FoxPro for DDE
Preparing Visual Basic for DDE
The syntax for a more generic example would be: Text1.LinkMode = 0 Text1.LinkTopic = "<FoxAppName>|<PathToDB>;<FoxsDataParam> <FoxsItemParam>" FoxPro handles all of the recognized actions in a Do Case statement, which is equivalent to a Visual Basic Select Case statement. In this case, the action triggered is an INITIATE, which recognizes only certain sData, sItem combinations. INITIATE expected data is: the keyword TABLE and the name of the table (tablename). The next action triggered is REQUEST, which recognizes only keywords in a nested Do Case statement.
|
Additional reference words: FOXPRO 2.50 Fox Pro 3.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |