PerfectForms Forums » General

join string of numbers

(3 posts)
  • Started 7 months ago by schaferdg@yahoo.com
  • Latest reply from schaferdg@yahoo.com
  1. Anonymous
    Unregistered

    Is there a way to join a string of numbers in the formula without adding them together?

    Example: I am making id's to separate forms in sql by year (2011) and month (08). The function year will make it 2011 and the function month will make it 08... but when I join them in a formula it applies addition to the string = 2019 total instead of 201108.

    I will not take offense if you don't reply...I just thought I would ask.

    Posted 7 months ago #
  2. ajobling
    Member

    In your example you could use a formula to create your result; something like (Year * 100) + Month. This will give the calculation 201100 + 8 = 201108.
    However this is only possible because you know the format and length of the data being input.
    If you want to 'join' numbers where you don't know the format then you could check one of the example forms in the help documentation. This is one of several useful examples that are worth checking out when you get a chance.

    http://www.perfectforms.com/Documentation/manual/html/?fl_joining_numbers_example.htm

    You can try the example out and will also be able to download a copy of the form to see the behavior used.

    Posted 7 months ago #
  3. Anonymous
    Unregistered

    Thanks for the information! It should work great for what I am doing.

    Posted 7 months ago #

RSS feed for this topic

Reply

You must log in or register to post.

Contact

1917 Palomar Oaks Way
Suite 160
Carlsbad, CA 92008
866.900.8588

  picture  picture  picture  picture