Thanks for getting back to me. Sorry I'm a little panicked.
At this point, I created a different subroutine to do all of the things that
the click routine does. The computer gets its very own subroutine because it
refuses to click.
What the functions are is:
When someone clicks on one of 36 picture boxes (enumerated in the "handles"
clause of the heading of the subroutine)
Change the tag property of the sender. (the tag holds a 0 for empty square,
1 for square controlled by player 1, or 2 for square controlled by player 2)
Change the image displayed by the sender.
In the case of the computermove subroutine that I wrote, the square
corresponding to the key value passed "hashboard(key)" takes the place of
sender. I know that a reference to that works because I use a "for each" to
reset the images when user presses the "new game" button.
--------------------
However, I can't pass anything from the business tier or to the business
tier and it wants me to create a new instance of the business tier every time
I refer to it.
The business tier can access friend declared variables from the presentation
tier (the game board or the opening screen) but a public property of the
business tier is "a non-shared member," as are public variables and subs of
the business tier.
I don't know why but "public" and "friend" don't appear to mean the same
things when I try to use them.
It tells me I need an object reference. I look up object reference and
non-shared member, and the help tells me that, if I have a non-shared member,
I need an object reference. That is so typical of Microsoft's "help."
My book explains nothing. The index contains neither term.
I have 21 minutes. The help desk is saying the lab will be open tomorrow but
there are notices posted _everywhere_ saying that it will not be.
Again, thanks
Lyz
"Lucian Wischik" wrote:
LyzH <Ly**@discussions.microsoft.comwrote:
It wants an argument and I
have no idea what to put there and it won't tell me and the information is
totally unavaialable
At this point we have even less information than you about what that
function is and what argument it expects. At least give us a hint!
--
Lucian