On Mar 23, 2004, at 9:44 AM, Kerry Thompson wrote:

In version 2, you are restricting yourself to using the method within
the object. In fact, I don't see any reason to have the pCurrent
parameters. They're accessible within your object, if I understand
yourself. You could just refer to them without having them as
parameters, or needing to pass them as arguments.

In version 1, you could call the method from any object, passing in any
arguments you want. This may not always be what you want, but it's
probably what you're looking for here.

More importantly, in version 1 you can trap for voids being sent, or improper values, or unexpected values, and substitute defaults, a la:


on mHandler(me, whichModule, whichSection, whichTopic)
  if voidP ( whichModule ) or stringP ( whichModule ) then
    pCurrent.pModule = #someValue
  else
    pCurrent.pModule = whichModule
  end if
  ...
  -- rest of the code
end



Warren Ockrassa | President,  nightwares LLC  [EMAIL PROTECTED]
 nightwares LLC | Consulting  Programming     http://www.nightwares.com/
         Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Chapter samples | http://www.nightwares.com/director_beginners_guide/

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to