Software Support
Sending DDE Commands to WinWedge from VB 6
After a link is established between a text box and a data field in WinWedge, you could issue commands to WinWedge 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: WinWedge 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]"
Categories: Macro / Code Sample, Visual Basic 6.0, C/C++, .NET, WinWedge
Last Updated: 2011.07.08
Need more help?Don't hesitate to call or email us with your questions! |
Technical Support: 215-496-0222Toll-Free: 1 (800) 722-6004 |