Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 10:54 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Simple arithmetic expression calculator.
PostPosted: March 5th, 2011, 9:32 pm 
Offline

Joined: January 8th, 2011, 1:39 am
Posts: 7
Opus: Pro v7.05
OS: Windows 7 rus
System: NB Toshiba P300-135, C2D1.8, ATI Mobility Radeon HD3470, 2gb
Hello.

Is there a solution a simple arithmetic expression calculator is performed by means of Opus Script? (In the text input box entering arithmetic expressions. For example: 12/4+3*2. When press the button - calculate the expression.)
If supported by the opening and closing brackets - that's great.

Thanks.


Top
 Profile  
 
 Post subject: Re: Simple arithmetic expression calculator.
PostPosted: March 5th, 2011, 10:37 pm 
Offline

Joined: January 8th, 2011, 1:39 am
Posts: 7
Opus: Pro v7.05
OS: Windows 7 rus
System: NB Toshiba P300-135, C2D1.8, ATI Mobility Radeon HD3470, 2gb
Sorry.
I find solve. I used function "eval".
From Opus script help: "The eval function allows you to enter a string, expression or variable name that will return the result of the code, in other words it executes the code if it is valid."
This is great!


Top
 Profile  
 
 Post subject: Re: Simple arithmetic expression calculator.
PostPosted: March 18th, 2011, 5:19 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
In case anyone later reads this thread and considers something more ambitious in scope, check out the link within this article. True, they are talking about server-side stuff, but interesting... and nice design.
http://ezinearticles.com/?How-to-Make-Y ... id=5968623

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 32 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group