Thats hard. The fact is, if "the original post was poorly written" it
was done so because I didn't know how to ask the question. Not
because I didn't know what I wanted to accomplish.
No doubt YOU know what you want to accomplish. However, *I* still don't
and I doubt anyone else reading this thread does either. Furthermore,
knowing what you want to accomplish and being able to do that are two
different things. It is still not clear that what you want to accomplish
is within the realm of possibility.
However, since you refuse to elaborate on your question, I guess we'll
never know.
So I would
encourage you not to be so harsh on the learner or so elitist in your
response. It always falls to the teacher to try to understand where
the student is and instruct them to where they need to be. If you
don't want to do that, you shouldn't presume to be a teacher.
It also falls on the student to show some humility when it becomes
apparent that they need more information than that which they asked for,
and to acknowledge that there is room for improvement in learning how to
do things. If you don't want to do that, you shouldn't presume to be a
student.
The fact is, before my reply to Bruce to which you took the time to reply,
I made two other posts -- one in direct reply to your own -- pointing out
the discrepancy between what you claim to want to do and what is actually
possible. You have had ample opportunity to clarify your question, and
yet you instead choose to find the one post where some offense might be
taken if one is looking to do so and respond to that.
A second fact is, I want to know the best way to accomplish my
objective. I don't think I would have spent two weeks asking
questions and searching the net and finally posting on a few use group
if I wasn't interested in resolving in the best manner possible that
follows OOP principles.
Then why aren't you paying attention to the suggestions given you here?
Finally, just a question -- I'm curious. Once you saw what I was
trying to accomplish, why didn't you respond with a sample of "here's
a better way to do what you are trying to do" and the principles of
why?
Because I *still* don't know what you're trying to do. The solution you
posted does not match the stated goal. Until you resolve the discrepancy
by explaining what it is you *really* want to do, there's not much I can
do to help you.
I *did* take the time to point out *why* the solution you posted does not
match the stated goal, but you've shown no inclination to acknowledge that
discrepancy, nor have you shown any inclination to resolve it by
explaining either a) that you stated your goal incorrectly and that a
reference to the main class is indeed fine with you, or that b) your
posted solution turns out to not achieve the goal of avoiding a reference
to the main class after all.
I think it might have required less typing and it certainly
would have been helpful.
The help is there, should you take the chip off your shoulder, actually
read what's posted, and respond in a way that allows those of us posting
to refine our answers.
My hats off to Karim and Swindell for their help
James made an assumption (possibly correct, possibly not) about what
you're trying to do. But your posted solution does not follow his
suggestion, nor would either solution posted meet your stated goal of not
wanting a reference to the main class in the secondary class. Karim's
suggestion isn't helpful IMHO, but if it is you should explain why it is
as that would help us understand better what it is you're really trying to
do.
You left out Bruce, who suggested substantially the same thing that James
did and took the time to elaborate on *why* it's a good suggestion. You
don't appear to have taken either suggestion as a solution to your problem.
In other words, you took the time to complain about the responses you've
given, but you still haven't bothered to clarify what it is _you actually
want to do_, nor do you seem to have noticed that I have posted my own
messages in this thread aimed solely at trying to help you.
Forgive me if I find your attitude overly defensive and lacking in the
kind of humility that someone who is truly trying to learn would have.
This isn't a daycare where your every need is to be catered to or where
everyone here should be expected to hold your hand. Some people are
willing to hold your hand, no doubt, but if you aren't prepared also for
people who are just going to tell you how it is while at the same time
doing their best to navigate the bewildering array of what passes for a
question here, then you would be better off to find a different source for
answers.
Here's a suggestion: when someone points out to you that your question
doesn't make sense, your next action should be to try to reword the
question so that it does make sense, using the feedback regarding the
question you've received so far. When you've done that and you are
*still* getting grief, then you might have cause to complain. Until then,
you don't really seem to be as student-like as you claim to be.
Pete