Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • Last Modified:

Question for MartinLiss

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
isnoend2001
Asked:
isnoend2001
  • 4
  • 3
1 Solution
 
Martin LissRetired ProgrammerCommented:
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
 
isnoend2001Author Commented:
...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
 
Martin LissRetired ProgrammerCommented:
Yes, that's it.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Martin LissRetired ProgrammerCommented:
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
 
isnoend2001Author Commented:
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
 
Martin LissRetired ProgrammerCommented:
You're welcome and let me know if there's anything more I can do.
0
 
isnoend2001Author Commented:
As my dad used to say Hookie Dookie
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now