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] Appending Text
Michael David
Thu, 10 Sep 1998 10:32:46 -0400

Hi Carl!

T1/A<-T1  Appends the text to the existing text in a text item.  T1<-T1
replaces all the existing text in a text item with the new text.

So, each time you want to "rebuild" a text line, make sure the first
statement uses T1<-T1, and your subsequent statements use T1/A<-T1.  This
applies to all Text copy/append operators.

In your example, you're probably using T1/A<-Stt, since you need to copy the
state of the time item to a text holder.  Therefore, you might try this each
time you want to build a text item with the time:

If	Minute		Is Now	0
Then	Text Holder		T1<-T1	"The time is:"
Then	Text Holder		Set		<space>
Then	Text Holder		T1/A<-Stt	Time
Then	Text Holder		Set 		Speak

Make sense?


Cheers!

Michael David
michael@michaeldavid.com



-----Original Message-----
From: Carl Keyes [mailto:Ckeyes@duey.california.com]
Sent: Thursday, September 10, 1998 3:03 AM
To: ecs-list@vancouver.ml.org
Subject: Re: [ECS] Appending Text


Daniel Dubay wrote:
>
> Carl,  If you are using a second text item why do you have to reset it?
> Just leave it until the next overwrite?

Dan,
If I don't "reset" it, it just keeps getting longer  with each use.
Ex. The current time is 6:am. The time being the appended text.
Next time I access it, it will be: The current time is 6:00am  6:00am.
and so on. So I have a second text item,The current time is,
that I copy back to the first after the time is spoken.

Thanks,

Carl


  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
.