Count Methods

TakeCall

This method allows the programmer to override the graphical connections and transfer a call to any other control. To accomplish this, use the syntax below.

Go to the User1 control from the GetDigits1 control:

GetDigits1_Enter(...)
User1.TakeCall(channel)

The destination control (User1) does not need to be connected to the current control and does not need to be on the same form.

If this method is called in a VBVoice control event related to the same channel, then the call is transferred as soon as the event procedure exits.

If this method is called at another time, or from another type of event, then a stop function is called into the voice driver which will terminate the current activity. Once the driver has stopped, the call will be moved to the control requested.

While the method is waiting for the activity to stop, other calls to this method, or to other asynchronous methods (such as StopCall) will generate a trappable error, type vbvErrCmdInProgress.