Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Whats wrong with this code? MsAgent

Posted on 2001-08-27
4
147 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

861 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