Your function uses N1 which has been already defined as constant in the pre-processor. Moreover I won't try to declare variables several times like you do in the definitions and then in the function itself.
Please Login to Report Topic
Please Login to Share Feed
New Post - Reply To: UDF problems defining a function