Sign in to follow this  

Little Dice Game

This topic is 4687 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying to put bets in the game using text boxes. I wrote this code but I cant manage it to work:
        ulog1 = Val(TextBox5.Text)
        ulog2 = Val(TextBox6.Text)
        banka1 = Val(TextBox3.Text)
        banka2 = Val(TextBox4.Text)
I wrote that in the Form1_Load function. And i wrote the following in one of the button_vlivk functions:
            result1 = banka1 + ulog1
            result_1 = banka1 - ulog1
            result2 = banka2 + ulog2
            result_2 = banka2 - ulog2
            TextBox3.Text = Str$(result_1)
            TextBox4.Text = Str$(result2)
The problem is that TextBox3 and TextBox4 dont change their value. It is always the same. What's the problem? Thanks -rex

Share this post


Link to post
Share on other sites

This topic is 4687 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this