contents.gifindex.gifprev1.gifnext1.gif

CompletionCode property

The CompletionCode property contains the reason for completion for the last call to an ActiveAG method. The different values that this property can contain are described in the ActiveAG Status codes topic.

This example illustrates one possible use of this property:

ActiveAG.PlaceCall (9,18005551212)

if (ActiveAG.CompletionCode = AagConCED) then

FAX or modem answered, try sending fax.

ActiveAG.FaxSend (FaxFiles)

end if

if (ActiveAG.CompletionCode = AagConVoiceBegin) then

Someone answered the phone, play voice

ActiveAG.PlayVoice (StartFax.vce)

end if

In this example, it is assumed that no errors (exceptions) are thrown the PlaceCall method. Had an error been thrown, it should be taken care of by the programs error handler.

This property is volatile; it can change after each call to an ActiveAG method. This property is also read-only.

CompletionCode is a read-only property. If your program attempts to set it, the setting will be ignored.

Data type: short Default value: 0 (SUCCESS) Units: None

Method interactions: Most methods set this property to indicate how they completed, if successful.

Event interactions: None.