RAS Function Reference

sPBGet

RAS Function Reference

This function retrieves the specified phone book properties.

<DllImport("SapphireRAS.dll")> _
Public Function sPBGet(ByVal sEntryName As String, ByVal sPBData As String, ByVal lLicence As Integer) As Integer
End Function

Parameters

  sEntryName
    A string specifying the name of the phone book entry.
  sPBData
    A string variable used to store the phone book properties into separated by a bar (|) character. If the phone book was not found the value will be 'No Such Phone Book Entry'. If the operation failed the function returns a string stating 'Problem Retrieving Phone Book Entry'.
  lLicence
    An integer specifying the licence number of the registered utility. If using in demo mode, enter 1234567890.

Return Values

  Returns a number indicating success or failure where 0 is successful. Use sRASErrMsg to get a string version of the error message.