P
Patrick Tingen
Guest
In this case, your program runs fine, but when doing recursive stuff that includes tt handling, you'd better use buffers for your temp-table. The way you do it now causes the temp-table to be scoped to the procedure as a whole and you want it to scope to the procedure itself. As I said, your program will run fine, but that is more or less accidental. If you wanted to do something with the temp-table record after your recursive call to checkDirectory, then it will fail. Try to replace 'run checkDirectory' with the code below and see what it shows. MESSAGE 1 ttDirectory.cDirectoryName VIEW-AS ALERT-BOX. RUN checkDirectory(cDirectory, ttDirectory.iDirectoryId). MESSAGE 2 ttDirectory.cDirectoryName VIEW-AS ALERT-BOX.
Continue reading...
Continue reading...