List Info

Thread: The Calculation




The Calculation
user name
2006-07-31 16:56:22

Arsen,

> I HAVE A EDIT BOXES FOR CALCULATE NUMBERS.FOR EXAMPLE
> 7:2 AND ETC.

What calculation does 7:2 do? Do you mean 7+2 or 7/2?

> SOMETIMES THE SECOND VALUE WILL BE 0 AND WHEN THE USER PUTS A 0 FOR
> EXAMPLE 8+0
> GIVES A ERROR THAT 0 IS NOT A INTEGER OR NUMBER.ANY EXAMPLE FOR
> CALCULATION
> THAT CAN DO WITHOUT ERROR.FOR EXAMPLE IF THE SECOND VALUE IS 0 CAN
> CALCULATE
> NORMAL AS 8+0=8??

Normal edit boxes do not do any calculation, they just accept text. If you
use an edit box to get text such as '8+0' than use StrToInt to convert it to
a number, a calculation is *NOT* done.

There are edit boxes that do calculations that you can download. Look for
one of those.

Rory Daulton
rorydaultonemail.com

----------------------------------------------------------
[This e-mail scanned for viruses and spam by Nmax - "Your MAXimum Connection!"]

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )