Wolfram wrote:Thanks for the Prototype example, but my idea was to call a Procedure depends of a result.
Yes; sadly, prototypes can't be used in arrays, lists, or maps. If you need to pass values other than integers with
CallFunctionFast(), simply store them in a string, pass the string address, and read the value with the corresponding
ValX() function.
Code: Select all
Procedure passTypes(nbr, txt.s, flt.s)
Debug nbr
Debug txt
Debug ValF(flt)
EndProcedure
myFunc = @passTypes()
CallFunctionFast(myFunc, 123, @"Hello!", @"456.789")
Not very elegant, but it's a viable workaround.
