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] Question Mark
Ingo Dean
Sat, 5 Sep 1998 23:46:00 -0400

> From: Dan Carrington [mailto:dc_grafx@microworks.net]
> I am playing with the caller ID settup that was shown recently for a way
> to replace the caller id name with the number is name was not available
> but the event lines need to check for the question mark.  ECS will not
> let me type a ? anywhere!!!  How do I type a ??

What you have to do is to exit ECS, and hand-code in a text-item with the
value "?".  There doesn't seem to be any other way.

Then, I also couldn't just compare my Caller-ID-Name item directly to my
Question-Mark item.  It just wouldn't work... but if you clear a temp text
item (Text-B below) and then use the Set/Char operator to copy the first
character from Caller-IC-Name to it, you can then do a Is/T1 comparison.  I
don't know why I had to do it this way... but then again, I'm pretty new at
ECS.

My code is below:

|Item:Question Mark Type:Text Acc:User/User
| Initial State:(None) Backup:No
| Text :?
|Item:Text-B Type:Text Acc:User/User
| Initial State:(None) Backup:No
| Text :T
|Item:Empty Text Item Type:Text Acc:User/User
| Initial State:(None) Backup:No
| Text :

| BEGINIF Caller-ID-C Is Not Now None
| Do Text-A T1<-T1 MSG:Call From
| Do Text-A Set <Space>
| Do Text-B T1<-T1 Empty Text Item
| Do Text-B Set/Char Caller-ID-Name
|
| Do Text-A T1<-T1 MSG:Call From
| Do Text-A Set <Space>
|
| If Text-B Is/T1 Question Mark
| Then Text-A T1/A<-T1 Caller-ID-Number
| Else Text-A T1/A<-T1 Caller-ID-Name
|
| Do Text-A Set Speak
|
| If Text-B Is/T1 Question Mark
| Else Text-A Set <Space>
| Then Text-A Set a
| Then Text-A Set t
| Then Text-A Set <Space>
| Then Text-A T1/A<-T1 Caller-ID-Number
|
| Do Text-A Set Log
|
| ENDIF


  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
.