Question: Converting to Fortran Code

I am wanting to convert a whole program in maple code to fortran code, (1) How do you suggest I can do this? I have in the code: Sub routines Individual lines of code, such as plots, for loops, if statements, import/export code etc. Whole code written in 2D input math (2) The code posted before using {anames()} etc I could not get to work, though I did manage to "merge" into one huge function. But when applying fortran(functionname), Maple does not do anything.
Please Wait...