Compiled vs Studio and Includes with UDFs Error 3623
Keywords: compiled studio includes UDFs Error 3623 Cannot have nested #DefineFuntion
Question:
I've got a program that includes several files with UDFs. I can step through the program just fine in the WB Studio and get exactly the results I'm looking for. However, when I run (Ctl-F7) or execute the compiled program, I get:Error 3623 Cannot have nested #DefineFuntionAny thoughts on this? Is it a valid error, since it works OK in debug? If it is, why doesn't it get caught in Studio?Answer:
Any #includes in your program?WinBatch Studio does not process #includes properly, and secretly converts them to a call.
Sooo...
If you have a #DefineFunction and inside the #DefineFucntion you have a #include to include other code, then Studio and WinBatch will work differently on this.
Studio will convert it to a CALL, then call the file and then, yes, you can define another function in the other file.
However Winbatch will replace the #incldue with the contents of the otehr file, and if there is a #defineFunction in it, the a nested #DefineFunction will be detected and it will error out...
Article ID: W15116