Questions? Search our site or call us at 1-800-722-6004

Sending DDE Commands to WinWedge from VB 6

Note: For a list of DDE commands, check out the support article listing WinWedge DDE Commands.

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, Data Collection, Serial (RS232), WinWedge

Last Updated: 2013.11.01

Need more help?

Don't hesitate to call or email us with your questions

Our office is open 9AM - 5PM Monday Through Friday (E.S.T.)

Technical Support: 215-496-0202

Toll-Free: 1 (800) 722-6004
Skype: taltech1 (Voice only)
Email: support@TALtech.com