Syntax
| AI.GetStatus(Handle As Long) As AIStatus
| |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description
| Returns the current status of a conversation handle. This is the method that drives the polling loop: call it repeatedly until it returns a value other than aiStatusBusy.
GetStatus contains an internal rate-limiter. However often the macro calls it, the object queries the server at most four times per second; surplus calls simply wait. A tight polling loop with only a DoEvents inside is therefore safe.
Return values
| |||||||||||||||||||
See Also
|
| |||||||||||||||||||
Example
| Do
DoEvents
Loop Until AI.GetStatus(aiHnd) <> 1 ' 1 = aiStatusBusy
|