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
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
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
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!
___
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
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
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
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