Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Msagent, how do I wait till its done
Message
 
To
03/04/2003 16:09:10
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00773778
Message ID:
00773821
Views:
14
>This all works fine, but the timing is wrong. Everything flashes by, leaving the character talking on
>the original form. How can I force foxpro to wait until the msagent has finished speaking before closing
>the new form.
>
>loAgent = thisform.Agent.Characters(JUSTSTEM(thisform.agent.Comment))
>WITH loAgent
*!* .speak("The folks at Elizabeth Carbide have asked me to guide you along the path to organization.")	
    loRequest = .Speak("The folks at Elizabeth Carbide have asked me to guide you along the path to organization.")	
    DO WHILE loRequest.Status = 4
        DOEVENTS
    ENDdo
>endwith
>
>thisform.ostatemanager.closeform('tool.scx')
>thisform.Show()
The above is untested, but should get you moving in the right direction.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform