Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004

    Unanswered: Combining Strings And Integers in Delphi

    I am trying to add the following together:

    miles + '.' + (feet div 5280) + (inches div 63360)

    These two types are incompatible, but I need to get the integer parts into that string in some way or another.

    How do you add strings and integers together?

  2. #2
    Join Date
    Feb 2004
    Use the IntToStr to turn integers to strings. Likewise FloatToStr should work for you for floats.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts