Solved

Question for MartinLiss

Posted on 2013-12-14
9
196 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 46

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 46

Expert Comment

by:Martin Liss
ID: 39719474
Yes, that's it.
0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 
LVL 46

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 46

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Paint/Redraw window while dragging 16 83
Windows Script Host failed (Access is denied.) error 6 237
Run code from text file in vb 1 73
Excel Automation VBA 19 91
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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…

821 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