Solved

Question for MartinLiss

Posted on 2013-12-14
9
188 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
  • 4
  • 3
9 Comments
 
LVL 45

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 45

Expert Comment

by:Martin Liss
ID: 39719474
Yes, that's it.
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 45

Accepted Solution

by:
Martin Liss earned 500 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 45

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

757 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now