Skip to Content

Passing Parameter to SubReport

Hi

Im trying to pass a parameter to a subreport however it hasnt got a field to link directly link to


I thought about creating a StringVar for it as -

whileprintingrecords;

stringvar SortBy;

SortBy := {?SortBy};

However as the value could contain multiple values Im getting an error -

This array must be subscripted. For example: Array [i].

Any ideas how to get round my problem ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 03, 2015 at 09:16 AM

    Hi Allan,

    You can create a comma delimited string and pass this to the Subreport as a parameter:

    stringvar SortBy;

    SortBy := Join({?SortBy},',');

    What do you wish to do with this unlinked field though?

    -Abhilash

    Add comment
    10|10000 characters needed characters exceeded