K Ksmith1192 Member Licensed User Longtime User Mar 22, 2013 #1 Hi guys, I have a couple buttons that I need to add +1 to an edittext. But every time I press the + button, it just adds one and doesn't add any more. I need it to go up to 100. Code: Copy Dim Cows As Float Sub Button1_Click edittext1.Text = Cows + Cows + 1 End Sub
Hi guys, I have a couple buttons that I need to add +1 to an edittext. But every time I press the + button, it just adds one and doesn't add any more. I need it to go up to 100. Code: Copy Dim Cows As Float Sub Button1_Click edittext1.Text = Cows + Cows + 1 End Sub
NJDude Expert Licensed User Longtime User Mar 22, 2013 #2 Code: Copy Dim Cows As Float Sub Button1_Click Cows = Cows + 1 edittext1.Text = Cows End Sub Upvote 0
K Ksmith1192 Member Licensed User Longtime User Mar 22, 2013 #3 Numberformat Thank you! I do have another question though. How do I get it to where the edittext box has no decimal places. Just whole numbers? I know its something with numberformat() but how would I go about implementing it Upvote 0
Numberformat Thank you! I do have another question though. How do I get it to where the edittext box has no decimal places. Just whole numbers? I know its something with numberformat() but how would I go about implementing it
NJDude Expert Licensed User Longtime User Mar 22, 2013 #4 If you are just adding 1, then use INT instead of FLOAT. You can find how to use NumberFormat HERE Upvote 0