evesely
28th December 2006, 18:46
Has anyone come figured out a way to use the "exec" functions to handle both an array argument and "by reference" argument passing? The parse_and_exec_function function works great for dynamically creating a function call with arguments that may be updated in that call. Unfortunately, it does not allow array variables. It points to using the exec_dll_function when using arrays. That function, however, does not appear to support "by reference" argument calls.

Any thoughts would be greatly appreciated.

Hitesh Shah
29th December 2006, 06:28
Hi

We have extensively used this function . It works great .

It does not allow array argument plainly because it is not possible to show it in a predictable manner in return call the values of an array .

If however u tell me the scenario , probably I may be able to suggest some workaround .

george7a
29th December 2006, 09:41
Hi,

I see 2 options here.

1) Use a global array so that every function can change.
2) Use a "regular" function to take the array by reference (& the function name), then inside this "regular" function, save the first cell in the array in a variable, call the exec function with the variable (by ref) and after that update the array with the variable. You will have to do that for all the cells in the array (save the value in a variable, pass the variable (by ref.) to the exec function then update the main array).

I hope it helps,

- George