My client has an Excel sheet that has DDE links to a PLC application. For example, in one of the cells the forumula is:
I am trying to create VB EXE that will simulate the PLC application, i.e. I want my VB app to be the DDE source.
I can make the project name "kepdde" and set the form's LinkMode = "1-Source" and it's LinkTopic property = "_ddedata".
However, I haven't figured out how to make a LinkItem with the name "kps_serial.plc.count1". It seems that in a VB app that is a DDE server, the LinkItem is always a name of a control (e.g. a textbox). Since I can't name a control "kps_serial.plc.count1", I can't simulate the LinkItem.
I am wondering if I can create an object "kps_serial" that has a PLC property (which is another object) which in turn has a "count1" property, and then set the "count1" property as the LinkItem?
Or alternatively, is there some way I can create a LinkItem in the DDE source form that has periods in the name?
Code:
=kepdde|_ddedata!kps_serial.plc.count1
I am trying to create VB EXE that will simulate the PLC application, i.e. I want my VB app to be the DDE source.
I can make the project name "kepdde" and set the form's LinkMode = "1-Source" and it's LinkTopic property = "_ddedata".
However, I haven't figured out how to make a LinkItem with the name "kps_serial.plc.count1". It seems that in a VB app that is a DDE server, the LinkItem is always a name of a control (e.g. a textbox). Since I can't name a control "kps_serial.plc.count1", I can't simulate the LinkItem.
I am wondering if I can create an object "kps_serial" that has a PLC property (which is another object) which in turn has a "count1" property, and then set the "count1" property as the LinkItem?
Or alternatively, is there some way I can create a LinkItem in the DDE source form that has periods in the name?