Jump to content

array of const

Recommended Posts

Hi all!

Is it possible to declare a function with a parameter of type "array of const"?


The compiler is throwing an error when I use this kind of parameter (if I don't use it in the function, everything goes fine):


[iDE] Internal error. Code-generator threw exception ECodeGenUnknownExpression with message TdwsJSCodeGen: unknown expression class TOpenArrayExpr:SQLFormat [line: 488, column: 126, file: mORMotClient]


Is it a bug or am I missing something?


Best regards,


Link to post
Share on other sites

Hi Eric!

Sorry for my previous posts, I was trying to send any reply and those worked... :(


Thank you for your answer. I am using the latest version ( The complete code is as follows:


here the code


If the line "LActualSQLWhere:=..." is commented out, then it compiles without problems. If it is not, then the error appears.

I tried using directly the variable (as shown in the code) and passing it before to TVariant.AsString like: "TVariant.AsString


(BoundsSQLWhere)", and in both cases I got the error.


Best regards,


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...