condition group in runtime

hello
I need to create conditions group with several fields at runtime
i've tried this
wrote:
group1.condition := 'frxdataset1.field1+frxdataset1.field2' also group1.condition := '[frxdatset1.field1][frxdataset1.field2]

the ideal would be to call a function at runtime returning a string to evaluate
something like
    
 group1.condition :=  myfunc;
 function myfunc:string
 begin
    result := 'cad1'+'cad2'+'cad3';  
 end;
f this can not be done, as I can create group expressions with multiple fields ?

thanks by your attention

Comments

  • edited 11:05AM
    Hi.

    I would have tried:

    group1.condition := '<frxdataset1."field1"> + <frxdataset1."field2">';

    The code should be executed before the grouping starts, so the main begin-end would be a good place to put it.

    Petter
  • edited 11:05AM
    Petter S. wrote: »
    Hi.

    I would have tried:

    group1.condition := '<frxdataset1."field1"> + <frxdataset1."field2">';

    The code should be executed before the grouping starts, so the main begin-end would be a good place to put it.

    Petter

    Thank you!

    I've solved my problem, greetings ...

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.