Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Question for MartinLiss

Posted on 2013-12-14
9
Medium Priority
?
203 Views
Last Modified: 2013-12-14
Thanks again for all your help. As a retired roofing contractor your code shows how little i know.

Could you modify the code to first check if the cells in the payout grid are in fact holding numbers a user could change the pays to include if only 2 cells are selected?
The paytable can be edited

My pay table is based on the pays in Reno, Nevada, but they could be different in other places.

Also:
The payout amounts are times the bet amount and the flexstatus needs updating if the bet is increased by clicking cmdBetOne.

Also:
Maybe your code needs to be put into a Sub instead of the click event. I plan on being able to select and unselect numbers by dragging
0
Comment
Question by:isnoend2001
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
9 Comments
 
LVL 49

Expert Comment

by:Martin Liss
ID: 39719359
Could you modify the code to first check if the cells in the payout grid are in fact holding numbers...
If I understand you correctly you want to check if cells in frmCleoPayOut.gridPayout are numbers. The If IsNumeric(frmCleoPayOut.gridPayout.TextMatrix(intIndex, gintSelected)) Then line in flexCleo_Click already does that.
...a user could change the pays to include if only 2 cells are selected
I don't understand what you mean.
The payout amounts are times the bet amount and the flexstatus needs updating if the bet is increased by clicking cmdBetOne.
If this refers to the 1st problem you mentioned in our other thread then I have a fix for that and I'll post it here later.
Maybe your code needs to be put into a Sub instead of the click event. I plan on being able to select and unselect numbers by dragging
Perhaps, but an easier way would be to simply unselect the number if it's clicked again. Would you like me to add code that does that?
0
 

Author Comment

by:isnoend2001
ID: 39719447
...a user could change the pays to include if only 2 cells are selected
I don't understand what you mean.
In gridPayout column 2 has no pays Unlikely, but a user could put pays in that column.

The payout amounts are times the bet amount and the flexstatus needs updating if the bet is increased by clicking cmdBetOne. lblBetCredits is increased by which will change the pays
 
Maybe your code needs to be put into a Sub instead of the click event. I plan on being able to select and unselect numbers by dragging

Perhaps, but an easier way would be to simply unselect the number if it's clicked again. Would you like me to add code that does that?

I feel as though i am asking too much by adding the dragging, but if the code to update flexstatus was in a sub when i get to the dragging part i am thinking the drag could just reference the sub
Example: Drag thru 6 numbers selecting them this updates flexstatus for 6 selections.
and label lblMarked would read 6
Drag over 2 selected numbers to un-select them and lblMarked would read 4 and flexstatus
would be updated for 4 selections
sorry to be such a pain
0
 
LVL 49

Expert Comment

by:Martin Liss
ID: 39719474
Yes, that's it.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 49

Accepted Solution

by:
Martin Liss earned 2000 total points
ID: 39719482
I've gone ahead and added code that deselects the number when it's clicked a second time. Try it and if you don't like it, it can be easily removed. The attachment also includes code that corrects the bet amount problem. Changes are marked with 'new3.
Q-28318480.zip
0
 

Author Closing Comment

by:isnoend2001
ID: 39719504
Thanks MartinLiss
After giving more thought I think that I will make  the 2 columns in the payout not be editable
This is the 2nd keno game i have made the first was a 20 card keno where a user can select upto 10 numbers for each card. Paid a coder at Freelancer to write the code after he was paid I discovered some errors and he did not respond. Had to hire another coder to fix the errors. Thought this keno game would be simple ( not Having 20 cards) not so.
The object of this Keno game is if the last selection lands on a marked card and its a win then another keno Board is shown with the same numbers selected and is ran 12 free times
and all the wins are doubled. I try to write these keno games to act just like the real games at the casinos.
Thanks for your help
0
 
LVL 49

Expert Comment

by:Martin Liss
ID: 39719518
You're welcome and let me know if there's anything more I can do.
0
 

Author Comment

by:isnoend2001
ID: 39719524
As my dad used to say Hookie Dookie
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question