TALtech Logo
search
Products Support Resources Free Software
TALtech Home:  Support:  WinWedge Support:  DDE and the WinWedge: WinWedge DDE Examples:



Sending DDE Commands to the WinWedge from a VB Application

After a link is established between a text box and a data field in the wedge, you could issue commands to the Wedge using the text box "LinkExecute Method". For Example the following code sends the string "Testing" followed by a carriage return out the serial port.

Note: The Wedge must be active on the specified serial port for the following code to work.

Hot = 1 : Warm = 2 : Notify=3 : None = 0
Text2.linkmode = None
' disable links before setting topic
Text2.LinkTopic = "winwedge|com2" ' set the link topic
' there is no need to set the LinkItem property when sending DDE commands
Text2.LinkMode = Warm ' set the link mode to "Warm" or "Hot"
Text2.LinkExecute "[Sendout('Testing',13)]" ' send the string out the serial port

' The following line will close WinWedge if you uncomment it
'Text2.LinkExecute "[APPEXIT]"

 

TALtech Home  |  Products  |  Resources  |  Free Software  |  Support  |  Buy Now  |  Register Your Products  | 
Site Map  |  Contact TALtech  |  News