Options

detect integer in text

casanovacasanova Member Posts: 194
edited 2013-09-10 in NAV Three Tier
hi all
how detect number in text?
lets say i have text = ab123a
so it will separate become :
1. ab
2. 123
3. a

thanks

Comments

  • Options
    jglathejglathe Member Posts: 639
    Hi,

    The evaluate function should help. If you evaluate for an integer, the function returns the position of the first wrong character.

    with best regards

    Jens
  • Options
    casanovacasanova Member Posts: 194
    jglathe wrote:
    Hi,

    The evaluate function should help. If you evaluate for an integer, the function returns the position of the first wrong character.

    with best regards

    Jens
    ok
    actually i want to separate from 1 text become 3 texts
    the problem is the integer one, sometimes at 2nd character, sometimes at 3rd character
    that's why i need to detect before separate it
  • Options
    ta5ta5 Member Posts: 1,164
    Just run through the alphanumeric string with a loop. If you find the integer you exit or you let it run further for the next int.
    Hope this helps
    Thomas
Sign In or Register to comment.