Jump to content
  • Advertisement
Sign in to follow this  

Little Dice Game

This topic is 5023 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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!