Hi,
There is a function called strtoint. Use like this
edit3.text := inttostr(strtoint(edit1.text) + strtoint(edit2.Text));
Give in Edit2.text 0.
Arsen Khachatryan <[EMAIL PROTECTED]> wrote:
HI ALL FRIENDS,
I HAVE A EDIT BOXES FOR CALCULATE NUMBERS.FOR EXAMPLE
7:2 AND ETC. 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??
THANKS A LOT FOR THE EXPERTS THAT THEY ARE HELPING THE BEGGINERS LIKE ME.
---------------------------------
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.
[Non-text portions of this message have been removed]
---------------------------------
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.
[Non-text portions of this message have been removed]
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/