- TelephoneList->insert(std::make_pair(*TelephoneCount, PropertySeg2));
- TelephoneListTypeInfo->insert(std::make_pair(*TelephoneCount, TelTypeUI));
+ // Check for the type information and split it down.
+
+ wxStringTokenizer TelSplitData(PropertySeg2, wxT(":"));
+
+ if (TelSplitData.CountTokens() > 1){
+
+ TelephoneListDataType->insert(std::make_pair(*TelephoneCount, TelSplitData.GetNextToken()));
+ TelephoneList->insert(std::make_pair(*TelephoneCount, TelSplitData.GetString()));
+
+ } else {
+
+ TelephoneList->insert(std::make_pair(*TelephoneCount, PropertySeg2));
+ TelephoneListDataType->insert(std::make_pair(*TelephoneCount, "tel"));