[IronPython] Doing Simple Math In Silverlight
Dino Viehland
dinov at microsoft.com
Fri May 15 00:20:24 CEST 2009
I think you want something like:
result0 = int(inputNum1.Text) + int(inputNum2.Text)
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Andrew Evans
Sent: Thursday, May 14, 2009 3:19 PM
To: Discussion of IronPython
Subject: [IronPython] Doing Simple Math In Silverlight
Hello
I am trying to perform some math operations in Silverlight
inputNum1 and inputNum2 are of TextBox
inputNum1 = TextBox()
inputNum2 = TextBox()
result0 = int(inputNum1) + int(inputNum2)
res0.Text = str(result0)
I get the following error
TypeError: expected int, got TextBox
Any ideas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20090514/3b98b2ee/attachment.html>
More information about the Ironpython-users
mailing list