MakeCall

Description

Places a call using the properties of the PhoneCall object.

Applies to

PhoneCall objects

Syntax

objectname.MakeCall ( )

Argument

Description

objectname

The name of the PhoneCall object on which the call will be made

Returns

Integer. Returns 1 for success and a negative value if an error occurs.

Examples

Example 1

The following example gets a phone number and name from single-line edit boxes, sets properties of the pcall_1 object, and makes a call:

// Global variable: Long g_phInit = 0 
integer li_ret
if ( g_phInit > 0) then
   pcall_1.VoiceCall = true
   pcall_1.PhoneNumber = sle_number.text
   pcall_1.CalledParty = sle_name.text
   li_ret = pcall_1.MakeCall()
else
   sle_1.text = "Call not initialized"
end if

See also