DialingDirectoryEntry objects
Indicates the phone number source. Values are:
The DataSource property takes an integer value. The following example uses a CASE statement to obtain the appropriate string from the enumerated variable for a given entry and writes it to a list box:
// Instance variable: // DialingDirectoryEntry iDialingDirEntries[] integer iDataSource String strDataSource iDataSource = iDialingDirEntries[index].DataSource choose case iDataSource case 0 strDataSource = String("Unspecified or Unknown") case 1 strDataSource = String("PO Contact List") case 2 strDataSource = String("PO Mobile Number") case 3 strDataSource = String("PO Business Number") case 4 strDataSource = String("PO Home Number") case 10 strDataSource = String("SIM - General List") case 11 strDataSource = String("SIM - Emergency Dial List") case 12 strDataSource = String("SIM - Fixed Dialing List") case 13 strDataSource = String("SIM - Last Dialing List") case 14 strDataSource = String("SIM - Own Numbers List") case else strDataSource = String("Unknown") end choose lb_1.AddItem("DataSource: " + strDataSource)
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |