Solved

Whats wrong with this code? MsAgent

Posted on 2001-08-27
4
148 Views
Last Modified: 2010-04-06
The code below makes my Agent whisper the I am whiapering
But when i try to make it whisper a Variable that contains Text he  wont do it, the variable is sSource
no matter how i try it the Agent whispers the words sSource
and not the words in th sSource variable
any ideas on this one
*smiles*





myAgent.Speak('\Chr="Whisper"\I am Whispering', '');
0
Comment
Question by:neopolis
4 Comments
 
LVL 6

Expert Comment

by:edey
ID: 6429136
listening

GL
Mike
0
 
LVL 6

Expert Comment

by:DrDelphi
ID: 6429525
Wouldn't be easier to make your own string to pass For example:

MSG:STRING;
msg:='\Chr=+QuotedStr(Whisper)+'\'+sScode';
myAgent.Speak(msg, '');


---Just a thought.

Good luck!!
0
 
LVL 2

Accepted Solution

by:
RickHalle earned 10 total points
ID: 6430223
You could do something like this also.

const Whisper = '\Chr="Whisper"\';
begin
  sSource:='I am Whispering';
  myAgent.Speak(Whisper + sSource, '');
end;

Rick Halle
0
 

Author Comment

by:neopolis
ID: 6430708
cool had to make a couple of small changes but it works
thanks...*smiles*
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question