ECS-L Home Automation and Security Archives
  learn more | view messages for this month | NetBloc® | terms of use | search

Google
 


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects

Subject:
From:
Date:
Re: [ECS] DDE from VB
Don Stephens
Fri, 10 Mar 2000 18:30:01 -0800

Doug:

Would you mind sharing your code?

Don
----- Original Message -----
From: "Doug Storey" <dastorey@swbell.net>
To: <ecs-list@netbloc.com>
Sent: Friday, March 10, 2000 2:03 PM
Subject: RE: [ECS] DDE from VB


> Thanks Dan & Don
> I am using the following and it works.
>
> Form1.Text1.LinkTopic = "PGM->ECS|Any"
> Form1.Text1.LinkMode = 2
> Form1.Text1.LinkItem = "I,reminder,,SET,False"
> Form1.Text1.LinkRequest
> Unload Form1
> Set Form1 = Nothing
>
> Now if I could just find my memory leaks I would feel like one of the big
> boys. But that has nothing to do with ECS
>
> Thanks again
> Doug
>
> -----Original Message-----
> From: Dan Hoehnen [mailto:dhoehnen@infinet.com]
> Sent: Friday, March 10, 2000 9:32 AM
> To: ecs-list@netbloc.com
> Subject: RE: [ECS] DDE from VB
>
>
> 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




Services provided by [NetBloc]®! NetBloc Solutions Inc.
Terms of use. Indexing software (c) 1999 Lin-De, Inc
.