Increase a number inside a string

yekedeyekede Member Posts: 96
Hi everybody,
I want to know if it is possible in NAV to increase a number inside a string by 10/100 or more.
The function INCSTR does it but it only increases by one. Any idea please?

Comments

  • BeliasBelias Member Posts: 2,998
    Create a function like this
    FOR I := 1 to Steps do
      String := INCSTR(String);
    
    and call it like this
    FNTIncrementMore(String,Steps);
    

    P.S.: do an "exit(string)" in the function or declare String as VAR depending on your needs
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • yekedeyekede Member Posts: 96
    I created the function and it works fine.
    Thanks
Sign In or Register to comment.