-
Oct 8th, 2006, 10:35 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Taking and manipulating numbers from a textbox
Hi all,
I have a program that needs to take the numbers that the user inputs into a textbox out into a "Long" (maybe?) variable and reduce them (It's the number of seconds for a timer, so I need to reduce it by 1 on each iteration.
The problem is, however I try it, if I try and take the value from the text box (say, "123") and put that value into a integer/long variable, I get a type mismatch error. I also tried making the variable a string, but then I got a type mismatch when it got to the "Variable = variable - 1" line.
Any ideas?
-
Oct 8th, 2006, 10:38 AM
#2
Re: Taking and manipulating numbers from a textbox
Text1.Text = Val(Text1.Text) -1
-
Oct 8th, 2006, 10:41 AM
#3
Thread Starter
Addicted Member
Re: Taking and manipulating numbers from a textbox
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|