-
1 Attachment(s)
Re: Flickering Buttons: How Do I Get Rid Of Them?
Finally, (for today at least:) ) here are some more things to ponder.
- The form's caption still says "Form1"
- Would you like to always have the form open in the middle of the screen? Or would you like to remember where it was the last time you played?
- You have Wait 3000 at the end of StartR1 and also in ShowEGQuestion. You don't need both and I think it runs smoother if you remove the one in StartR1 and change the other to 500.
- The numbers that appear in RDNumber have an underscore and a line through them as in this picture
-
Quote:
Originally Posted by MartinLiss
[*]The form's caption still says "Form1"
Fixed.
Quote:
Originally Posted by MartinLiss
[*]Would you like to always have the form open in the middle of the screen? Or would you like to remember where it was the last time you played?
It would be nice to have the form open mid-screen. How do I do this?
Quote:
Originally Posted by MartinLiss
[*]You have Wait 3000 at the end of StartR1 and also in ShowEGQuestion. You don't need both and I think it runs smoother if you remove the one in StartR1 and change the other to 500.
The Wait 3000 is at the end of StartR1 because there is a final caption in StartR1 that needs to be shown before the next sub is set off. Doing Wait 3000 will allow for that, and eliminating it means the caption will disappear. However, I did change the Wait 3000 in the ShowEGQuestion to Wait 500.
Quote:
Originally Posted by MartinLiss
[*]The numbers that appear in RDNumber have an underscore and a line through them as in this picture[/list]
Funny, because I never had that underscore and strikethrough problem on my side. Do you have the right font? The font is called "Clarendon" and it should be in the last folder I sent you.
BTW, either way, it seems as if I am very close to completing Round One of the game in terms of coding, and pretty soon it will be on to Round Two.
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
To have the form always open mid-screen change it's StartUpPosition property in the IDE to "2 CenterScreen".
Yes I have clarendo.ttf in the same folder with sportstype.ttf
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
I found the problem with the font. Somehow (in my copy at least), both the Strikeout and Underline options in the Effects frame of the Font dialog for RDNumberEG(0) and RDNumberEG(1) were selected and the Strikeout option was selected for BLNumberEG(0) and BLNumberEG(1). I unselected them and now I'm fine.
Another small problem that I've had from the beginning of working on your project is that after starting the program the form would disappear soon after "come in gang" and I'd have to manually click it once or twice in the bottom bar (the name of which I always forget) to get it to appear again. Does that happen to you as well? I just found out that for some reason it was the calling of Sleep in the Wait routine that was causing the problem. If you change the sub to look like this then the problem goes away.
Code:
Public Sub Wait(intHowLong As Integer)
Dim sngClock As Single
sngClock = Timer
While Timer < sngClock + (intHowLong / 1000)
DoEvents
Wend
End Sub
There is now no longer any call to Sleep in that sub. I'd say that you could delete the declaration for the Sleep function but in four places you call Sleep directly instead of calling Wait. You should change that so that you are consistent.
In the Wait sub above you'll notice that intHowlong is divided by 1000. That's because the Timer function that it calls returns a value representing the number of seconds elapsed since midnight rather than the milliseconds that Sleep deals with. If you decide to change the Wait sub you could keep it like it is above or you could do this
Code:
Public Sub Wait(sngHowLong As Single)
Dim sngClock As Single
sngClock = Timer
While Timer < sngClock + sngHowLong
DoEvents
Wend
End Sub
but if you did that you would need to change all your calls to Wait from things like Wait 500 to Wait .5
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
I did a few tests on the entire Round One throughout today, and I discovered that there are still problems with the card turning vs. setting off the right or wrong subs, but only prevalent after Question #2 and Question #3. Question #4 seems to work without any problems, strangely enough.
I am just wondering something here...
I wonder if it's possible that, because I use the same buttons for more than one sub, that it may throw off my code and that may be the reason why the cards seem to flaw in Question #2 and #3, but not Question #1 and #4?
I revamped the code (saving the original backup first, of course) and used the following buttons in the following subs:
Code:
Private Sub RevealFirstRedCard() ' Or RestartRedCards
' buttons only
cmdChangeRCd.Visible = True
cmdChangeRCd.Enabled = True
cmdHigherRCds.Visible = True
cmdHigherRCds.Enabled = True
cmdLowerRCds.Visible = True
End Sub
Private Sub RevealFirstBlueCard () ' Or RestartBlueCards
' buttons only
cmdChangeBCd.Visible = True
cmdChangeBCd.Enabled = True
cmdHigherBCds.Visible = True
cmdHigherBCds.Enabled = True
cmdLowerBCds.Visible = True
cmdLowerBCds.Enabled = True
End Sub
Private Sub RevealFirstRedCard2 () ' Or RestartRedCards2
cmdChangeRCd2.Visible = True
cmdChangeRCd2.Enabled = True
cmdLowerRCds2.Visible = True
cmdLowerRCds2.Enabled = True
cmdHigherRCds2.Enabled = True
cmdHigherRCds2.Visible = True
End Sub
Private Sub RevealFirstRedCard3 () ' Or RestartRedCards3
cmdChangeRCd3.Visible = True
cmdChangeRCd3.Enabled = True
cmdLowerRCds3.Visible = True
cmdLowerRCds3.Enabled = True
cmdHigherRCds3.Enabled = True
cmdHigherRCds3.Visible = True
End Sub
Private Sub RevealFirstBlueCard3 () ' Or RestartBlueCards3
cmdChangeBCd3.Visible = True
cmdChangeBCd3.Enabled = True
cmdLowerBCds3.Visible = True
cmdLowerBCds3.Enabled = True
cmdHigherBCds3.Enabled = True
cmdHigherBCds3.Visible = True
End Sub
Private Sub cmdHigherBCds_Click () ' Or Lower
AnswerHigherRedCards ' Or Lower
End Sub
Private Sub cmdHigherBCds2_Click () ' Or Lower
AnswerHigherRedCards2 ' Or Lower
End Sub
Private Sub cmdHigherBCds3_Click () ' Or Lower
AnswerHigherRedCards3 ' Or Lower
End Sub
By giving each sub a numeric label (2, 3, 4, etc.) and separate command buttons inside each sub, maybe that might solve the problems with the card turning and setting off the right subs.
I will compile the new code first in the morning, and do some testing with it, and I'll be providing a feedback report about it at some point tomorrow or Friday.
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
IMO it's a very bad idea to add more command buttons when you could I'm sure reuse the ones you have with very little effort. Otherwise you create a maintenance nightmare. It also wouldn't hurt to mention that there's a limit of 255 controls on a form and while you now have only 84, it's something to be aware of.
In any case before you ship me a new set of code I'd appreciate it if you would look at the Font settings on your side so that I don't have underlines and strikeouts and also I'd like you to consider changing the Wait sub.
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
BTW, how do I do a count to see how many controls I have on my form?
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
At any place in the execution of the program, place it in break mode and in the Immediate window type ?controls.count and press return. "Controls" is the name of a collection that contains information about all the controls on a form and Count is a property of all collections.
-
1 Attachment(s)
Re: Flickering Buttons: How Do I Get Rid Of Them?
If you don't think that reusing buttons is workable then you should at least consider control arrays. If you haven't used them here's a trivial example.
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
Quote:
Originally Posted by
MartinLiss
At any place in the execution of the program, place it in break mode and in the Immediate window type ?controls.count and press return. "Controls" is the name of a collection that contains information about all the controls on a form and Count is a property of all collections.
I did that, and I don't see the Control count anywhere in the project. Where would I have to look?
And I will check out the control array sample soon. Thanks for providing a sample!
-
1 Attachment(s)
Re: Flickering Buttons: How Do I Get Rid Of Them?
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
^ Thanks!
Oh, and I do have some news to share (some good news, and some sort of bad news)...
First the bad news...
Earlier this afternoon, on my way home from getting groceries, I tweaked my right knee as I was carrying groceries. I believe the heavy cans in the bag hit my knee as if it almost dislocated, but thankfully didn't. I was uncertain if I injured it even just slightly. But thankfully, I went to the emergency room and the doctor told me I might have given a certain muscle a bit of a blow and it is a bit tender. I will still be on the computer, but until the worst of my tenderness is over (which might be by Sunday or sometime during the first week of February), my project will be on hold.
Now for the good news...
I was doing a major revamp of the code in recent days, and I am adding control arrays in almost every sub! That will take a significant cut on all the controls, as using a sub and having a "Select Case Index" in those subs will probably make the code more efficient and use less control subs in a single form.
When my knee is much better, I will resume the coding already in progress. :)
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
In the meantime, regardless of my problems today, I did just do a compile, and I tried doing this so that I can allow subdivisions within the same sub.
Here is an example:
Code:
Private Sub cmdRFreeze_Click(Index As Integer)
Select Case Index
Case 0
If CurrentRedSlot = 1 Then
FreezeRedPlay(1, 1) = 0 <== Expected Function or Variable Error prevails.
ElseIf CurrentRedSlot = 2 Then
FreezeRedPlay(2, 1) = 0
ElseIf CurrentRedSlot = 3 Then
FreezeRedPlay(3, 1) = 0
End If
...
End Select
End Sub
Code:
Public Sub FreezeRedPlay(Index As Integer, Ques As Integer)
Dim sfile As String
Select Case Index
Case 1
sfile = App.Path & "\sounds\freeze.wav"
sndPlaySound sfile, SND_ASYNC
FreezeCard(WhosTurn) = 1
RFreeze.Caption = "1"
cmdChangeRCd.Visible = False
cmdChangeBCd.Visible = False
cmdChangeRCd.Enabled = False
cmdChangeBCd.Enabled = False
cmdHigherRCds.Visible = False
cmdHigherRCds.Enabled = False
cmdLowerRCds(0).Visible = False
cmdLowerRCds(0).Enabled = False
cmdRFreeze.Visible = False
If RFreezeBar.Left = "3720" Then
RFreezeBar.Left = "3840"
lblRNameBar.Left = "3960"
For i = 0 To 1
SetDialog CurName & "Player Freezes"
Next
Wait 30
RFreezeBar.Left = "3960"
lblRNameBar.Left = "4080"
Wait 30
RFreezeBar.Left = "4080"
lblRNameBar.Left = "4200"
Wait 30
RFreezeBar.Left = "4200"
lblRNameBar.Left = "4320"
Wait 30
RFreezeBar.Left = "4320"
lblRNameBar.Left = "4440"
Wait 30
RFreezeBar.Left = "4440"
lblRNameBar.Left = "4560"
Wait 30
RFreezeBar.Left = "4560"
lblRNameBar.Left = "4680"
Wait 30
RFreezeBar.Left = "4680"
lblRNameBar.Left = "4800"
Wait 30
RFreezeBar.Left = "4800"
lblRNameBar.Left = "4920"
Wait 30
RFreezeBar.Left = "4920"
lblRNameBar.Left = "5040"
Wait 30
RFreezeBar.Left = "5040"
lblRNameBar.Left = "5160"
Wait 30
RFreezeBar.Left = "5160" 'CurrentSlot1
lblRNameBar.Left = "5280"
RFreeze.Caption = "1"
Wait 3000
Select Case Ques
Case 1
StartQuestion (2)
Case 2
StartQuestion (3)
Case 3
StartQuestion (4)
Case 4
If CurQues.Caption = "R" Then
StartQuestion (8)
ElseIf CurQues.Caption = "B" Then
StartQuestion (7)
End If
Case 5
If CurQues.Caption = "R" Then
StartQuestion (10)
ElseIf CurQues.Caption = "B" Then
StartQuestion (9)
End If
Case 6
If CurQues.Caption = "R" Then
StartQuestion (12)
ElseIf CurQues.Caption = "B" Then
StartQuestion (11)
End If
End Select
End If
...
End Select
End Sub
After doing a compile, I got an error message with regards to a line and possibly a series of lines as noted in red text. What would I have to do to fix this problem?
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
It thinks you're trying to set FreezeRedPlay to zero. You can't set subs to anything.
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
But when I use just simply:
Code:
FreezeRedPlay(1, 1)
It does nothing. I press enter after that line of code, and I get a pop-up dialog box and it requires an equal sign at the end of that line (I think the error message said "Expected End of Statement"?). That particular line and the like turns into red text as a result.
EDIT: The error message said "Expected function or variable." What are some recommendations?
I tried removing the "= 0", "= 1", etc., and I put Call before the FreezeRedPlay(#, #), and I compiled it, and there may be no problems. Is that a good idea?
Also, might I suggest this thread's topic be changed to "Card Sharks Project"?
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
Do either of the following.
Call FreezeRedPlay(1, 1)
FreezeRedPlay 1, 1
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
I was already ahead of the game with Call FreezeRedPlay(1, 1). Thanks for the help!
I got to go to bed now as I post this, and I have to give my knee a rest. Hopefully I will be better soon so I can resume this project. The revamp is going really well, I think!
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
I realized that I have too many controls in the game (last I checked I had almost 175 out of the maximum 255 used on a form). Also, to allow for easier maintenance, I put each of the 3 rounds on separate forms. Doing this will allow for ample free space and I realize that some games require more than one form, but at least there won't be too many.
At least I am consolidating the questions and the card playing onto one form, but it turns out that putting the gameplay elements on 3 separate forms is the only way I can avoid getting very close to capacity for a form.
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
I should have mentioned that for the purposes of the 255 limit, all the members of a control array count as a total of only one control.
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
Quote:
Originally Posted by
MartinLiss
I should have mentioned that for the purposes of the 255 limit, all the members of a control array count as a total of only one control.
Thanks for the reminder, but I did do a control array count and it did come up 174 or around there. Just to be safe, I decided to do individual forms for each of the 3 rounds of game play. And besides, it's easier for me to maintain than having to go through all that consolidated code.
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
I know you've made up your mind to create three forms so I won't try to get you to change your mind but help me understand something. The last update you sent me contained almost complete code for the first round and you had 84 controls. I know you started to use control arrays after that so how is it that you needed to increase to 174? Aren't the rest of the rounds basically the same as the first round?
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
There were add-ons in terms of labels, images, subs, and other stuff. I don't remember when I sent you the recent update, but I was kind of surprised to notice that there were more than double the controls on my side as opposed to your most recent delivery.
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
Even labels (that I assume you are using in large part to keep track of totals) can be control arrays, and so can images and each can have it's own picture.
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
Quote:
Originally Posted by
MartinLiss
Even labels (that I assume you are using in large part to keep track of totals) can be control arrays, and so can images and each can have it's own picture.
Anything that can exist on the top of the form that can be accessed from a drop-down menu, I believe, are controls/control arrays, in other words. I figured out why there were more than double on my update than the 84 on your last delivery. I see the picture. :)
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
A menu item fits that description but menu items aren't controls and they can't be arrays. A control is one of the objects that are shown in the Toolbox or listed after you select Project|Components. A control array is a group of controls that share the same name and type. Members of a control array are referenced via their index; eg MyLable(4) which would refer to the 5th member of the control array.
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
I am still trying to figure out the problem with the cards, and I am still having problems with setting off the right sub, but the problem only prevails when the red player wins the first question and that same red player wins the second and third questions in a row. Same theory for when the blue player wins the first question and the second/second and third questions as well. The first two questions the red player wins is not a problem at all.
BTW, I uploaded a video to show where the problem lies. View this clip in its entirety and you'll see what I am talking about and where the problem lies:
http://www.youtube.com/watch?v=fiU9zWHXlok
An updated folder will be sent to you later today.
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
To be honest with you Jon I couldn't follow the video well enough to understand (or see) the problem. BTW it looked to me as if you were stopping and starting the video because the guesses you made were wrong and so you had to back up and try again and so it was confusing to watch. I'm not asking you to redo it but maybe a documant that explains step by step what is happening in the video and what should happen would help.
To help with your next video (if there is one) do you realize that unless you've removed the Debug.Print statements in the shuffle routines that the "deck" is displayed in the Immediate window so you can see what card will be next. To have the list of cards handy you could break the program just after it starts, do a Ctrl-A in the Immediate Window, copy it and paste it into NotePad and then print it.
Also about the video, I have no problem with it being on YouTube, but you could just upload the avi file or whatever it is to SendUIt and I could download and run it on my PC.
-
1 Attachment(s)
Re: Flickering Buttons: How Do I Get Rid Of Them?
The guesses I made were wrong because sometimes the player may call the card higher, and while it may be higher, the HigherWrongCards sub is set off instead.
I am attaching a Word document to explain in detail where the problem lies, and where the problem is very vulnerable to occur.
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
In looking at the code that I have I noticed two things, 1 minor and 1 perhaps major.
The minor thing is that in AnswerLowerBlueCards, AnswerHigherBlueCards, AnswerHigherRedCards, and AnswerLowerRedCards you define j and you set it to oldCardValue but you never use j after that so for clarity sake you should get rid of it.
The major thing is that you have just one oldCardValue for both the red and blue player. Don't you need two different variables that could be called perhaps oldRedCardValue and oldBlueCardValue?
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
Here's a trick that might help your testing. The highlighted lines will set up the blue deck so that the first 11 cards are the 2 to queen of spades.
Code:
Private Sub ShuffleBlueCards()
Dim X As Integer, i As Integer, j As Integer
'load the deck
For i = 0 To 51
BlueCards(i) = i
Next
Randomize
'shuffle
For i = 0 To 51
X = Int(Rnd() * 51) + 1
j = BlueCards(i)
BlueCards(i) = BlueCards(X)
BlueCards(X) = j
' Debug.Print BlueCards(i) & " ";
Next
Debug.Print "------- Shuffle Blue Cards -------"
For i = 0 To 10
BlueCards(i) = i
Next
For i = 0 To 51
Debug.Print NameCard(BlueCards(i))
Next
End Sub
Instead of those lines you could set up any values you want by doing something like the following which would result in the first 4 cards being the 2 of Clubs, 10 of Clubs, 3 of Clubs and Jack of Diamonds.
Code:
BlueCards(0) = 13
BlueCards(1) = 21
BlueCards(2) = 14
BlueCards(3) = 48
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
I did a test using the oldRedCardValue and the oldBlueCardValue variables, and with the "test" cards each player started with the 2, then called it lower than 2 (intentionally), and it was a 10. When the red player won the second question, he started from the 2, and guessed higher than the 2. Since the last card for the red player was a 10, guess what? While it was higher than the 2 (it was a 3), the right sub (HigherRightCards) was set off!
I guess it may be proven that using oldCardValue is just consolidating both decks of the cards and that may be why the code was screwed up a bit - why I was getting the wrong sub set off when I was getting a card higher and the HigherWrongCards sub is wrongfully set off.
I will do a series of tests over the course of the day and maybe into Saturday, and if there's positive results, it looks like it will be on to the second round (which will only be a simple copy/paste job and maybe some slight editing).
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
Marty, do you happen to have the most recent file folder I sent you? I may have edited the code and saved it as the same file by mistake. If you do, can you please send it back to me?
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
Apparently, I still have the problem with regards to the flipping of the cards and the wrong sub being activated. But I do have some positive news that the playing of the cards is based on consecutive plays of the cards.
Here is what I have recorded thus far:
Blue Player wins first question - No problems.
Red Player wins second question.
Blue Player wins third question - No problems.
Blue Player wins fourth question - but this is where the problem lies, as he calls the card higher than the 4 and while it is a 7, the wrong sub is set off.
It seems as if the game may follow a pattern that the cards will run smoothly if it's 3 consecutive plays of the cards and maybe not more, and definitely if it's 3 non-consecutive plays of the cards. Originally, the problem was with 2 consecutive plays vs. 2 non-consecutive plays, and now it seems to be with 3 consecutive vs. 3 non-consecutive, maybe 4.
I think the game should run more smoothly and the same blue (or red) player should get the right cards with the right sub set off if he/she wins four consecutive questions.
Is it possible I may have to add the following lines of code:
For the RevealFirstCard and the RestartTurnCards:
RedFirstPlay = 0
RedFirstPlay = RedFirstPlay + 1
BlueFirstPlay = 0
BlueFirstPlay = BlueFirstPlay + 1
And for use in the RestartFreeShot and RevealFreeShot subs:
RedSecondPlay = 0
RedSecondPlay = RedSecondPlay + 1
BlueSecondPlay = 0
BlueSecondPlay = BlueSecondPlay + 1
Would you recommend this idea? And how do I go about coding the card playing so that I can have the game run more smoothly with the blue (or red) player winning the first question for 3 non-consecutive times?
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
Create a new zip for me and I'll take a look at it.
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
Before I do send you the zip folder, I will let you know that I experimented with additional subs for the card playing (with the taglines "Two", "Three" and "Four" on them). The first three card playings seem to work when that same blue (or red) player wins the first three questions all in a row. But when the blue (or red) player wins the first question, and not the second, but wins the third and fourth question, there's a skipping involved and that results in the player's non-consecutive third play of the cards (usually after the fourth question) not setting off the right sub.
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
I just did a test run, and now the problem prevails when the same blue (or red) player wins his/her fourth question in a row and chooses to play the cards instead of passing.
When the blue player chooses to play the cards after the fourth question (sudden death), that blue player had a 3 as his/her base card, and he/she called it higher than the 3, and while it is an 8 (the previous blue card revealed in the blue player's last playing was a 10), it activated the opposite sub (RedGameWinBLoss) instead of setting off the HigherRightCardsFour sub.
At least we seem to be on the right track and we can get through the first three questions no problem. But the fourth playing of the cards is a big problem, if the blue player (or red player) wins that question and elects to play the cards instead of passing.
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
I've found some problems, maybe not the problem, but problems nonetheless.
You should never have a form-level variable with the same name as a code module variable but you do.
1) You have "playing" defined in the form and also in GameEssentials. You set the value of playing but you never actually inquire as to its value so you don't need either one at all but for now you should just delete the one in the form.
2) You have cards() defined in both places. In the form you have it defined cards(0 to 51) which is 52 cards, but in GameEssentials you have it defined cards(0 to 53) which is 54 cards. You should get rid of one of them and decide if your deck will have 52 or 54 cards (2 jokers?).
I don't know if 2) is causing your problem but let me know.
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
#2 is probably because the form may work properly without the module. The cards() in the GameEssentials6 module is for use in the Money Cards, which was already worked on last spring (yes, there are some parts of the game that are completed already).
As for #1, I saved the module and deleted the "playing" from the newly saved module.
Quote:
Originally Posted by MartinLiss
You should never have a form-level variable with the same name as a code module variable but you do.
What do you mean by that?
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
Guess what?
The blue player won four questions in a row, and he/she played the cards every time without any problems! This means the wrong sub didn't get set off all four times!
Tomorrow morning, I will do a test run with the blue player winning the first question, and the red player winning the second question, and the blue player winning the remaining two questions, etc., and see what results I get. It looks promising that there is significant progress now!
-
Re: Flickering Buttons: How Do I Get Rid Of Them?
Quote:
Originally Posted by
JonSea31
#2 is probably because the form may work properly without the module. The cards() in the GameEssentials6 module is for use in the Money Cards, which was already worked on last spring (yes, there are some parts of the game that are completed already).
As for #1, I saved the module and deleted the "playing" from the newly saved module.
What do you mean by that?
In GameEsentials you have the code module variable
Code:
Public playing As Boolean, cards(0 To 53) As StdPicture, rand(0 To 53) As Integer
while in Round1f you have the form-level variable
Code:
Dim cards(0 To 51) As StdPicture, BlueCards(0 To 51) As Integer, RedCards(0 To 51) As Integer
If you refer to cards in the form, do you know which cards definition you are referring to? Even if you do it's confusing and you don't need both. If you think you will at some time need two of them then rename one of them now.