NAT0936 compilation error calling a user-defined function


if you add “by value” to the input parameters, it should work (see examples

If you do not use “by value”, the call must match in format and length, as noted (

Since the default format for literal numbers less than 32767 is I2, they do not match your prototype.

Thanks a lot for the prompt reply!

Yes, that is the explanation. I did not think of it - or maybe wasn’t even aware that this is so. :oops:
Thanks again,