Solved

Question for MartinLiss

Posted on 2013-12-14
9
200 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 47

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 47

Expert Comment

by:Martin Liss
ID: 39719474
Yes, that's it.
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 47

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 47

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

732 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