Home RAP
New Blog Posts: Merging Reports - Part 1 and Part 2

RAP function with an array-type parameter

I'm trying to create a RAPFunction that would work like Delphi's Format function, i.e., with an argument of type “array of const”.

I tried using a variant, which is accepted, but I can't create an array of variants using VarArrayOf.
I've also noticed that you can't use an array or a TArray.

Are there any future plans to include arrays, TArrays, or the VarArrayOf function in RAP functions or in the process of creating a RAP function?

Comments

  • Hi Marius,

    Thanks for the feedback. As you have found, it is currently not possible to use arrays in RAP. We will consider this for a future release.

    While not as elegant, using a list object (TStringList, TList) may be a workable option for now.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Hi Nico,

    Thanks for your quikly response.

    It's a possibility to uses a TList, but concreatly, the format function is was to simplify the code.

    I'll wait implementation using an array to creating the format function.

    Best regards
Sign In or Register to comment.