Concatenation

radbaseradbase Central Texas, USofA
edited December 2016 in FastReport VCL 5
I have a situation where I want to take 3 fields and concatenate them on a report.

From one dataset I have a field (string) called name, and from a related second dataset I have two fields (numbers) called chapter and verse. I want the report to print a concatenated string of the 3 fields together; concatenated.

Example output would be Ester 8:9 (the longest verse in the Holy Bible).

I know this must be simple, but it's beatin' me up big time!!!

HELP!!! >

Comments

  • radbaseradbase Central Texas, USofA
    edited 12:53AM
    Well, so sorry! I just went one step at a time and got it to work!

    The actual embedded function is as follows:

    [<frxDBDataset2."name"> + ' ' + IntToStr(<frxDBDataset1."chapter">) + ':' + IntToStr(<frxDBDataset1."verse">)]

    Hopefully someone will get something out of this as it's really a common need in reporting.

    (See the attached image file. The verse is the string I built from the above line.)

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.