By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,503 Members | 1,188 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,503 IT Pros & Developers. It's quick & easy.

calculating (evaluating) expression

P: n/a
rxo
greetings!

i have two text boxes. in first i enter an expession such as
(2,78+3,16)*2*1,4
is there a way to have the result (16,632) of that expression shown in the
second box? a function maybe?

thank you
Sep 29 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
rxo wrote:
greetings!

i have two text boxes. in first i enter an expession such as
(2,78+3,16)*2*1,4
is there a way to have the result (16,632) of that expression shown in the
second box? a function maybe?
Eval()
>
thank you

Sep 29 '06 #2

P: n/a
in the afterupdate event procedure for that textbox, enter

textbox2.value = eval(textbox1.value)

replacing the control names for their factuals.

rxo schreef:
greetings!

i have two text boxes. in first i enter an expession such as
(2,78+3,16)*2*1,4
is there a way to have the result (16,632) of that expression shown in the
second box? a function maybe?

thank you

--
Bas Cost Budde
Holland
www.heuveltop.nl/BasCB/msac_index.html
Sep 29 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.