Click here to Skip to main content
15,068,471 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
VB
Dim phoneUtil = PhoneNumbers.PhoneNumberUtil.GetInstance()

Dim a = phoneUtil.getNumberType("96170274754")


I keep getting the below error:


VB
Error	4	'GetNumberType' is ambiguous because multiple kinds of members with this name exist in class 'PhoneNumbers.PhoneNumberUtil'.	C:\Users\elj\Desktop\NumberBook\NbChat\Classes\NumberBook.vb	1403	17	NbChat (NbChat\NbChat)


how can i fix this?
Posted

   
From what I see in the source code[^], the getNunberType method parameter should be a PhoneNumber object while you are passing a string, instead. So, in order to uset it, you should first find a way to obtain a PhoneNumber object from your string.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900