convert number in text

jaiverma2k2jaiverma2k2 Member Posts: 112
edited 2010-12-07 in Navision Attain
Dear All,

I've an decimal variable, in which iam assigning a value in loop, i need to copy this value in text.
e.g. First Time 101.10, second - 2311.12
in Text variable - 'Detail' the data should be store like - 101.10,2311.12

please help.

Regards,
Jai
Regards,
Jai Verma

Answers

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Check the on-line help for the C/AL function FORMAT.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • jaiverma2k2jaiverma2k2 Member Posts: 112
    Not able to understand, it is helpful for me if u specify the example as per my requirement.
    Regards,
    Jai Verma
  • ara3nara3n Member Posts: 9,256
    what he means is to use format

    for example
    repeat
      if mytext = '' then
      mytext := format(mydecimal)
    else
      mytext :=  Mytext + ',' + format(mydecimal);
    
    until whatever
    
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Not able to understand, [...]
    What part of "Check the on-line help for the C/AL function FORMAT" did you not understand?
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • jaiverma2k2jaiverma2k2 Member Posts: 112
    Thanks a ton for help, it's resolved now
    Regards,
    Jai Verma
Sign In or Register to comment.