Ok ok now it is clearer for me
(as I said, getting older now haiz...
)
Just last question to make sure I correctly understand your point (so that other members can benefit too):
Scenario: Let say I (or the user) get an incoming call, the caller number is something like this (as it is a local number) "0122555777".
And in my Blacklist the stored number is using the format: "+65122555777" (with "+" and the country code, in International format)
I will need to use my stored number (String) to compare with caller's number (String) to see whether the caller is in Blacklist or not.
Question: The following will be true?
FormatNumber(incoming call's number) = FormatNumber(my stored number)
i.e FormatNumber("0122555777") = FormatNumber("+65122555777")
Appreciate your help NJDude
The reason I am asking so many questions is that I have done a call blocker, but when comparing the numbers I have to reformat them manually: I have to remove all dashes and spaces, only accept numeric and then get substring of them let say only last 7 characters...and lastly I compare those 7 characters against each other, so it is a very dirty coding. The issue will come as sometimes you have a call with only 3 or 4 characters (for example +1310 or +1010 etc.)
Regards,