468,243 Members | 2,047 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,243 developers. It's quick & easy.

calculating (evaluating) expression

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
2 1146
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
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.

Similar topics

4 posts views Thread by bonehead | last post: by
4 posts views Thread by luscus | last post: by
1 post views Thread by kaosyeti | last post: by
4 posts views Thread by pinkfloydhomer | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.