Property: CurrentLineIndex


Function:

 

Select a line for current operations or return the index of the current line..

     

Value Available:

 

CurrrentLineIndex can be set from -1 to  LineCount -1.  If it is set to -1 it indicates that the sound card is the current line. Any other value(0 to LineCount - 1) is a telephony line (voice modem, voice board or sms modem).

     

Description:

 

Most of the Methods need to have a current line set before they are invoked. Setting the line with this property avoids the need to pass the line as a parameter to all the other Methods.
Current line can also be set by calling CurrentLineName

     

Dependencies:

 

Initialize should be used before you can set CurrentLineIndex to a value >=0.

     

Events Raised:

 

None

     

Sample Code In Visual Basic:

Sub Form_Load()

 dim lineCount as integer

 va.Initialize ""

 dim i as integer

   for i =0 to va.LineCount-1

      va.CurrentLineIndex = i

      cmbLines.AddItem va.CurrentLineName 'add the name of the line to the list box

  next i

End Sub