RAP function with an array-type parameter
in RAP
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?
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
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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