Self-reproducing Codeunit NAV 5.0
This codeunit might be of interest to some of the academic-minded programmers out there. OnRun creates a text-file, containing the whole object. I knew, that this had already been done for other programming languages, so I asked myself, what it would look like in Navision. Well, here is the answer.
http://www.mibuso.com/dlinfo.asp?FileID=1179
Discuss this download here.
Comments
Or am I not understanding something?
But in practice it's a pain to modify unless you make a generator that turns any object into a self replicating object by filling in a function with the text version of the rest of the object. The generator could exist in the same object though. But if you do that you might as well just export the current object as text and modify it in place. :-?
I got bored at that point and just generated a codeunit. :roll:
TVision Technology Ltd
Johannes Sebastian
MB7-840,MB7-841
Don't just post invoices (even though that is important) but also do fun stuff, you will be amazed how useful that is in the years to come.
=D>
Thanks!