On Sun, 16 Nov 2008 06:17:06 -0800, Eric B. <bi*****@sesamestreet.com>
wrote:
1) We can assume his assumption was correct because it solved my
problem. Usually when a problem is solved by a given solution we
consider the solution was in fact correct.
You never stated that it actually solved your problem. There was no way
for anyone to make that inference.
2) I did post some code, perhaps you need glasses as well?
Sorry, I should have been more specific: "you still haven't bothered to
post any of the _relevant_ code". That is, you complained that something
didn't work, but you didn't show any of the code actually trying to use
what didn't work.
Yes, you posted code. But the code you posted had nothing to do with your
problem.
3) There was no need to further post code because as I suspected my
problem was able to be solved by describing the circumstances involved.
It was a newbie mistake, that's all.
You never posted relevant code in the first place. It's great that Pete's
advice helped you, but a) you never said that it had solved your problem,
and b) whether it helped you or not, the fact is that it is still
impossible to make any definitive statements about your code, since we
haven't seen it.
4) Your explanation appears to just be a long-winded way of saying the
same thing I did, that I *in effect* created an instance of Form instead
of a Form2.
No, absolutely, incontrovertibly not. You are repeating the same
erroneous statement that you made previously, and to which I replied
pointing out its error, and that is certainly not a correct summarization
of my post.
Again, since you haven't posted the code, I cannot state definitively what
_your_ code is or is not doing. But, if we assume it looks the same as
the "Form form = new Form2()" that Pete guessed, you are NOT creating an
instance of Form. That is, the actual type of the instance isn't Form
(though it certainly inherits Form).
Just because the type of the variable holding the reference is Form, that
doesn't mean that the instance itself is of the type Form.
If you are new to object-oriented programming, it's not surprising that
this might be a confusing aspect for you, nor should it be a point of
embarassment if you're not quite getting it yet. These things take time
to learn.
But acting out in the belligerent way that you're doing now isn't a very
good way to learn. All it does is put yourself in a state of mind where
it's very difficult for you to learn the unfamiliar concepts that are
giving you trouble in the first place, and to make people less inclined to
try to help you in the future.
Pete