Barry Look up "Value" in the Dictionary. I'd say it does just what you want.
e.g. put value("4+2-3*2/3") 4 regards David On Tuesday, April 9, 2002, at 10:00 , Barry Levine wrote: > Greetings Listas! > > I have a stack with a field that will contain a math problem - > something like "4+2-3*2/3" (no quotes). How can I do a calculation that > will give me the answer? I will always know the text that is going into > the field as I "put" it there during a handler. I was looking for > something like "calculate field "myField". Note that the operators will > not always be consistently placed; in other words, the "+" may appear > anywhere within the text (or not at all); same goes for the other > operators (although there will always be at least -one- operator in the > equation). > > Thanks, > Barry > -------------------------------------------------------- > Barry Jay Levine > "The Mac Guy" > Macintosh Troubleshooting, System Engineering, Training, > AppleShare/OSX Server Setup, System Upgrades and Enhancements > On-Site service for K20, Business, Consumer > Phone/VoiceMail: 915-581-1105 > Fax: 915-581-8167 > eMail: [EMAIL PROTECTED] > > _______________________________________________ > use-revolution mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/use-revolution > _______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution