Re: 5000 lines of code

2011-06-11 Thread Geoff Canyon Rev
Richmond, you could rewrite that to be much more efficient, both in code, and I'm guessing in performance. Instead of this: case (numToChar(2339) numToChar(2325)) set the unicodeText of fld fPROC to numToChar(61953) put 2 into DDROP break case (numToChar(2339) numToChar(2326)) set the

Re: 5000 lines of code

2011-06-09 Thread Richmond Mathewson
Mark Took me a couple of times through that to get what you meant. Ah... you mean that same switch code is duplicated in other objects as well. What I'd do in that case is move it out of the objects and make a handler farther along the message path (the stack script, for instance) as command

Re: 5000 lines of code

2011-06-09 Thread Jim Ault
I moved the recyclable code into the stack script and called it from each object. BUT, the interesting thing as that, while the objects called the code successfully, it meant that the individualised segments of code in the object that came after the recyclable code stopped working

5000 lines of code

2011-06-05 Thread Richmond Mathewson
If anybody really cares here is a PDF of the code in ONE object in my Devawriter Pro: read it and weep . . . :) http://andregarzia.on-rev.com/richmond/PRO/KODE/5000.pdf you never know; you might learn something, get a headache, or both! ___

Re: 5000 lines of code

2011-06-05 Thread Mark Wieder
Richmond- Sunday, June 5, 2011, 8:13:27 AM, you wrote: If anybody really cares here is a PDF of the code in ONE object in my Devawriter Pro: read it and weep . . . :) That may be the longest mouseUp handler / switch statement I've ever seen g A few suggestions: I'm not sure if it will make

Re: 5000 lines of code

2011-06-05 Thread Richmond Mathewson
On 06/05/2011 10:03 PM, Mark Wieder wrote: Richmond- Sunday, June 5, 2011, 8:13:27 AM, you wrote: If anybody really cares here is a PDF of the code in ONE object in my Devawriter Pro: read it and weep . . . :) That may be the longest mouseUp handler / switch statement I've ever seeng A few

Re: 5000 lines of code

2011-06-05 Thread Mark Wieder
Richmond- Sunday, June 5, 2011, 12:07:00 PM, you wrote: Also, you spend a lot of effort making sure that DDROP has the correct value, but then you never use it. The switch code is generic, and the DDROP value is used in other objects. Took me a couple of times through that to get what you

Re: 5000 lines of code

2011-06-05 Thread Richmond Mathewson
On 06/05/2011 10:33 PM, Mark Wieder wrote: Richmond- Sunday, June 5, 2011, 12:07:00 PM, you wrote: Also, you spend a lot of effort making sure that DDROP has the correct value, but then you never use it. The switch code is generic, and the DDROP value is used in other objects. Took me a