×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    106

    get last 4 digit mobile

    Hello
    How to get Last four digit of mobile number in symbian c++?
    Last edited by sonia1986; 2009-11-17 at 10:58.
    j2me

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: get last 4 digit mobile

    Quote Originally Posted by sonia1986 View Post
    Hello
    How to get Last for digit of mobile number in symbian c++?
    TDesC16::Left() might help you

  3. #3
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: get last 4 digit mobile

    Quote Originally Posted by sonia1986 View Post
    Hello
    How to get Last for digit of mobile number in symbian c++?
    From where you want to get mobile number, when incoming call comes and incoming sms number can you describe it
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

  4. #4
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    106

    Re: get last 4 digit mobile

    Quote Originally Posted by aamitgupta View Post
    From where you want to get mobile number, when incoming call comes and incoming sms number can you describe it
    fetching number from call logs
    j2me

  5. #5
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: get last 4 digit mobile

    Quote Originally Posted by sonia1986 View Post
    fetching number from call logs
    ok when you get the number in buffer and then your retrieve the length of buffer and truncate the number as per your length or use TDesc16 function Left and right.
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

  6. #6
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    68

    Re: get last 4 digit mobile

    You can try this

    TDesC8 Util::ExtractDigitsFromPhoneNumber(const TDesC8& phoneNum,TInt num)
    {
    TPtrC8 lastFourDigitPtr;
    lastFourDigitPtr.Set(phoneNum.Left(num));
    return lastFourDigitPtr;
    }
    "Nobody will believe in you unless you believe in yourself."

Similar Threads

  1. [moved] Mobile Porting Solutions
    By ninnythomas in forum News, Announcements and Job Listings
    Replies: 3
    Last Post: 2008-11-03, 10:10
  2. [moved] TWO THINGS YOU PROBABLY NEVER KNEW YOUR MOBILE PHONE COULD DO
    By shawnonmobile in forum General Development Questions
    Replies: 4
    Last Post: 2008-10-30, 16:16
  3. please helpme?.. this is the problem when mobile stolen..
    By ganngadhar in forum Symbian Networking & Messaging (Closed)
    Replies: 11
    Last Post: 2007-09-21, 07:55
  4. Wanna be Senior MIDP (Mobile Java) Developer in the best start-up company in Europe??
    By JimBraire in forum News, Announcements and Job Listings
    Replies: 0
    Last Post: 2007-09-14, 12:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •