• aram_golbaghi (3/11/2009)


    hi

    i think gsquare's solution is verywell,

    works fine

    Yep... right up until you dial a 1 or 3 digit country code instead of +44.

    Country codes can be from 1 to 3 digits.

    City codes can be from 0 to 4 digits.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)