CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CD-adapco (http://www.cfd-online.com/Forums/cd-adapco/)
-   -   Call a macro from a macro (http://www.cfd-online.com/Forums/cd-adapco/53862-call-macro-macro.html)

Flav June 30, 2004 13:23

Call a macro from a macro
 
Hi all, I'd like to know if it is possible to call a macro from another macro. I have the feeling that it stops after executing the second macro...

Thanks in advance

Flav

4xF June 30, 2004 14:16

Re: Call a macro from a macro
 
Actually, you cannot call a macro from within a macro :(. How should a macro know after it's execution it has to come back to the location from where it has been called??? A macro is not a subroutine and does not contain a return statement (I tapped also in this booby trap...) Workaround: write your second macro to a file and use the IFILE command.

Flav July 1, 2004 06:42

Re: Call a macro from a macro
 
Working with .inp files seems to be the good option. Thanks a lot for your quick answer !

Regards Flav


All times are GMT -4. The time now is 02:48.