home *** CD-ROM | disk | FTP | other *** search
-
- Private Sub cmdStartSession_Click()
-
- Dim lonTAPIStatus As Long
-
- ' Check to see if a phone number was entered.
- If RTrim(txtPhoneNum.Text) = "" Then
- lstStatus.AddItem "Err: No Phone Number Entered"
- Exit Sub
- Else
- strPhoneNum = RTrim(txtPhoneNum.Text)
- End If
-
- ' Initiate the TAPI session with the
- ' tapiRequestMakeCall function.
- lonTAPIStatus = tapiRequestMakeCall(strPhoneNum, _
- "TAPI Sample", strPhoneNum, "")
-
- ' Report the status.
- Call TAPIStatus(lonTAPIStatus)
-
- End Sub
-