Solved

Whats wrong with this code? MsAgent

Posted on 2001-08-27
4
145 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
Comment Utility
listening

GL
Mike
0
 
LVL 6

Expert Comment

by:DrDelphi
Comment Utility
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
Comment Utility
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
Comment Utility
cool had to make a couple of small changes but it works
thanks...*smiles*
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

771 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now