Find Jobs
Hire Freelancers

Basic Strategy Trainer

$30-5000 USD

Completed
Posted about 22 years ago

$30-5000 USD

Paid on delivery
I've created a Basic Strategy Blackjack testing program for the Casino Professional. The program is meant to display a hand, and offer answer options. My first dilemma that I was able to fix was the answer option sub became too large, so I split it into 7 different subs, and that seemed to work. I also have a counter going for the number of correct responses and the number of incorrect repsonses. The problem is this: if the person using the program gets all of the questions right, the correct counter increments correctly. If they get them all wrong the incorrect counter increments correctly. If within the first sub the user gets some right and some wrong, both counters increment correctly through the entire program, BUT if the user gets all the questions right in the first sub, and then gets one wrong any where in the following subs, I get a type mismatch error '13'. The breakpoint comes at the name of the incorrect counter which is intincorrect. I have tried all the different data types I can think of and also declared them as static integers in each sub. I've attached the code at the beginning of each sub, as well as the general declarations. Do you have any suggestions? I'm about to pull my hair out.... code: This code is in module 1 Option Explicit Public strName As String Public strBadge As String Dim intcorrect As Variant Dim intincorrect As Variant Private Sub optAnswer_Click(Index As Integer) 'Frame 0 Static intcorrect As Variant Static intincorrect As Variant Private Sub optAnswer2_Click(Index As Integer) Static intcorrect As Variant Static intincorrect As Variant intcorrect = [login to view URL] intincorrect = [login to view URL] When I get to the breakpoint, the values for intincorrect = 0, but the lblIncorrect Caption is displaying as "". I'm thinking my problem is there, but I'm not sure what to do. In the beginning, I declared all of these as integers, but I think the zero threw that off. I've tried long and variant. If you can help, I appreciate it. It just seems so stupid that I can't get the counter to work properly now. I could probably get around it another way, but would like it to increment if possible. Thanks in advance for your help. Bob Guidice ## Deliverables Deliver fully functional counter. All copyrights remain mine. ## Platform Windows 98 or higher
Project ID: 2845744

About the project

5 proposals
Remote project
Active 22 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$1 USD in 14 days
5.0 (75 reviews)
5.2
5.2
5 freelancers are bidding on average $8 USD for this job
User Avatar
See private message.
$8.50 USD in 14 days
4.7 (58 reviews)
5.9
5.9
User Avatar
See private message.
$7.65 USD in 14 days
5.0 (41 reviews)
4.7
4.7
User Avatar
See private message.
$12.75 USD in 14 days
5.0 (30 reviews)
4.2
4.2
User Avatar
See private message.
$11.90 USD in 14 days
3.5 (4 reviews)
1.1
1.1

About the client

Flag of UNITED STATES
United States
0.0
0
Member since May 1, 2002

Client Verification

Other jobs from this client

Basic Strategy Trainer 2
$30-100 USD
Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.