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 4:55PM
    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 4:55PM
    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