|
ECS-L Home Automation and Security Archives |
learn more
| view messages for this
month | NetBloc® | terms of use | search
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects
Subject: From: Date: | RE: [ECS] DDE from VB Dan Hoehnen Fri, 10 Mar 2000 10:31:35 -0500 |
Here is how ACE communicates with ECS.
opening the DDE link:
txtECSDDE.LinkTopic = "PGM->ECS|Any"
txtECSDDE.LinkMode = 2 'manual dde link
SendCommandToECS ("S,ace server") 'tell ecs what name to use to connect
to ACE
SendCommandToECS ("C," & ECSClientID) 'tell ecs which DDE channel to use
The 3rd and 4th lines above are needed so ECS can send data back to ACE
(your program). You may not need them for what you are doing. ECSClientID
is either A or B or C or D, depending on which of the 4 DDE channels you
want ECS to use. The S and C commands are documented in ddecln.c in your
ECS folder.
Sending data:
txtECSDDE.LinkItem = ecsmsg
txtECSDDE.LinkRequest
You are executing the LinkRequest method before setting the LinkItem. You
should reverse the order to be like mine.
You are also missing a comma in your I command. You need 2 commas before
the SET, like this:
Form1.Text1.LinkItem = "I,reminder,, SET, 0"
I also use "SET" instead of "set" in all of my commands to ECS. But, I
don't know if case matters or not. Case DOES MATTER in the item name.
Try both "0" and "False" and see which works (I think you have already done
this).
I hope this helps.
Dan
> I am trying to use DDE from VB. I want to set a true/false type
> item in ecs.
> My VB statements are.
>
> Form1.Text1.LinkTopic = "PGM->ECS|Any"
> Form1.Text1.LinkMode = 2
> Form1.Text1.LinkRequest
> Form1.Text1.LinkItem = "I,reminder, set, 0"
>
> The link is established. However I am not seting the state to 0 or false
> and the link is staying up. Can anyone assist with my programing
> education.
>
> Tks Doug
>
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects