PhoneNumberPlan  PicturesAsFrame

Chapter 3: Property Descriptions and Usage

PhoneNumberType

Applies to

CallLogEntry and DialingDirectoryEntry objects

Description

Indicates the type of phone number.

For a CallLogEntry, this is a string value, typically w for a work phone number, h for a home number, and m for a mobile number.

For a DialingDirectoryEntry, this is an integer indicating the protocol to use when dialing. Values are:

Usage


In scripts

The following example tests whether the PhoneNumberType property is set for a given call log entry, and writes its value to a multiline edit box if it is set:

CallLogEntry l_entry
integer index
string ls_type

l_entry = clog_1.GetEntry(index)
if (l_entry.PhoneNumberType <> "") then
   mle_1.text += "Type: " + l_entry.PhoneNumberType

else 
   mle_1.text += "Type: Unknown"
end if





Copyright © 2004. Sybase Inc. All rights reserved. PicturesAsFrame

View this book as PDF