Difference between Format and Str?

  1. 2 months ago

    Is there a difference between the Format and Str functions?

    For example, are there any differences between

    ThisString = Format (a * b, "###.0")


    ThisString = Str (a*b, "###.0")
  2. Tobias B

    Jun 12 Pre-Release Testers, Xojo Pro Bern, Switzerland

    AFAIK, Format is locale specific whereas Str always uses US locale.

  3. Norman P

    Jun 12 Pre-Release Testers, Xojo Pro great-white-software.com/blog

    Format will use the correct localized decimal and thousands separators
    So in France etc it would use " " and "," for those separators
    Str NEVER does and ALWAY uses , and .

  4. Thanks.

or Sign Up to reply!