|
-
Mar 13th, 2001, 10:39 AM
#1
Thread Starter
Junior Member
I left this thread in the general section also but im not getting much help there.
Here is the code im having a problem with
Text23.text = Val(text10.text) * 50
Text12.text = Val(text1.text) / Val(Text23.text)
On the second line I recieve a overflow error could this be happening because text1.text = 0
I have tried the clng instead of val also.
Thanks to anyone that can help
-
Mar 13th, 2001, 11:14 AM
#2
Frenzied Member
You should only get an overflow error if the value of text10 is really small, or 0. (actually if it's 0 you'll get a division by 0 error. try it with numbers between 1 and 10. you shouldn't have any problems.
If it wasn't for this sentence I wouldn't have a signature at all.
-
Mar 13th, 2001, 11:38 AM
#3
Thread Starter
Junior Member
Actually the number in text10 is from 1-480
and Text1 is 1-24000 I have done a work around
IF Val(Text10.text) > 0 Then Text23.text Val(text10.text) * 50
IF Val(Text1.text) > 0 Then Text12.text = Val(text1.text) / Val
This seems to work but there may still be a problem Im
not getting an overflow error now
-
Mar 13th, 2001, 11:50 AM
#4
Thread Starter
Junior Member
Actually the number in text10 is from 1-480
and Text1 is 1-24000 I have done a work around
IF Val(Text10.text) > 0 Then Text23.text Val(text10.text) * 50
IF Val(Text1.text) > 0 Then Text12.text = Val(text1.text) / Val
This seems to work but there may still be a problem Im
not getting an overflow error now
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
|