Self-reproducing Codeunit NAV 5.0

Administrator
Member, Moderator, Administrator Posts: 2,506
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.
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.
0
Comments
-
I don't see the usefulness of this. What's the difference between this and doing a Save As text file?
Or am I not understanding something?0 -
I think it was written to prove a theoretical concept: http://en.wikipedia.org/wiki/Self-repli ... er_programNo support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
matttrax wrote:I don't see the usefulness of this. What's the difference between this and doing a Save As text file?
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:Robert de Bath
TVision Technology Ltd0 -
matttrax wrote:I don't see the usefulness of this. What's the difference between this and doing a Save As text file?
Or am I not understanding something?0 -
OT: This could be the first step towards a SkyNet Edition of NAVBest regards / Venlig hilsen
Johannes Sebastian
MB7-840,MB7-8410 -
I think its really important for someone learning a new language to play with ideas and do "stupid" things. When Financials first came out I did all sorts for things that had no value. Especially with forms, making forms that would re-size or buttons to move them, changing visible and moving one control relative to another, eventually leading to me creating a version of WinMine. Every time a new function came out I tried something with it. Of course none of those objects are of any use, since it was the learning experience of doing it that had value, not the final result.
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.David Singleton0 -
David Singleton wrote:I think its really important for someone learning a new language to play with ideas and do "stupid" things. When Financials first came out I did all sorts for things that had no value. Especially with forms, making forms that would re-size or buttons to move them, changing visible and moving one control relative to another, eventually leading to me creating a version of WinMine. Every time a new function came out I tried something with it. Of course none of those objects are of any use, since it was the learning experience of doing it that had value, not the final result.
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>0 -
crisnicolas wrote:David Singleton wrote:I think its really important for someone learning a new language to play with ideas and do "stupid" things. When Financials first came out I did all sorts for things that had no value. Especially with forms, making forms that would re-size or buttons to move them, changing visible and moving one control relative to another, eventually leading to me creating a version of WinMine. Every time a new function came out I tried something with it. Of course none of those objects are of any use, since it was the learning experience of doing it that had value, not the final result.
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!David Singleton0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions