Problem with StrToFloat

edited 12:07PM in FastReport 3.0
Hello
I have a Problem with StrToFloat-function. I use this function in a Memo in a report to convert from String to Float:
[StrToFloat(<frDSDruck."Freitext3">)]

FastReport gives me an error "Memo15 is not a valid float" (in German: Memo 15 ist kein g??ltiger Gleitkommawert).

I know that it is not necassary to convert this single value to display it in a report, but I wont to sum the values with
SUM(StrToFloat(<frDSDruck."Freitext3">))
and because this fails I tried first to make the simple conversion bevor I do the aggragation. I think that SUM should work when the transformation to float works...

Thanks for every hint...

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 12:07PM
    tru adding extra brackets
    SUM((StrToFloat(<frDSDruck."Freitext3">)))

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.