Questions tagged [evaluate]

execution of evaluations of expressions or evaluation functions. Use tag evaluation for rules, algorithms, and strategies of the evaluation.

What is it?

Evaluation is about rules, algorithms and strategies used for the evaluation of expressions or the computation of evaluation functions.

This tag may should be used for the execution of evaluations.

Related tags

  • Prefer the tag if the question is about rules, algorithms and strategies used for the evaluation of expressions or the computation of evaluation functions.
  • For more specific questions use tag

See also:

470 questions
1
vote
1 answer

Qt - creating a complex "calculator"

I am building an application that requires a graphical interface for a calculation process. The calculation is basically a formula written by the user to be evaluated with QScriptEngine - ie, Javascript. The thing is I'm having trouble breaking…
Joum
  • 3,189
  • 3
  • 33
  • 64
1
vote
2 answers

Cannot evaluate a two-digit number

I have a evaluate method that so far adds, subtracts, and multiplies strings (e.g. "5*5"). However, when I try to evaluate a single digit by a triple digit ("5*10"), it returns "5" instead of "50". I think my problem is that it's only taking the…
user2297666
  • 321
  • 2
  • 6
  • 20
1
vote
1 answer

Mac Excel 2011 VBA Evaluate

I am moving a excel VBA from PC to Mac and one line has an Evaluate function, for example: Public Function test() test = Evaluate("=2+2") End Function However, if I try and run the macro on the mac the function returns #name. Is there an…
pdoak
  • 721
  • 8
  • 21
1
vote
3 answers

ASP.NET Response.Redirect() issue not working at false parameter

Have trouble with the Response.Redirect() and getting the error: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack I've googled and found some topics here, like: Unable to evaluate expression…
Secret
  • 2,627
  • 7
  • 32
  • 46
1
vote
2 answers

XSLT fop-0.95: problem with dyn:evaluate

I've been struggling with some weird behavior of fop 0.95 (don't know if I'm doing something wrong, or if there is a work around). I have an auto generated XML as follows: Report Generation
Krishna
1
vote
1 answer

Eval string for wordpress "in_category" workaround outside the loop

In Wordpress you can´t use "in_category" outside the loop, so I created a function that gives me all the categories my article is in and create a "is_category" if statement out of it. I put my function in my "functions.php": function…
fimbim
  • 113
  • 2
  • 6
1
vote
3 answers

Alternatives to Evaluate

An audit has shown up a vulnerability in our use of evaluate as it allows arbitrary code execution. Has anyone got an alternative? Example below. We're running CF9. SELECT #url.column# …
1
vote
1 answer

In Excel and VBA, how to set value of cell to the formulas result rather than the formula

I'm getting values from one sheet and placing them in another using a macro in Excel. I currently have this which works fine: sheet.range("B2:B35").Value =…
Kurt
  • 1,868
  • 3
  • 21
  • 42
1
vote
2 answers

MySQL function conditional always evals as true

I have a SQL function that is supposed to return 0 or 1 depending on whether a user activation was successful or not. I have the following two tables I need to interact with: users {user_id, unique email, ...} user_activation {activation_hash,…
Dominic
  • 62,658
  • 20
  • 139
  • 163
1
vote
2 answers

Groovy evaluation of Strings in DSL

I am trying to write a BASIC-like DSL using Groovy and I am at a very early stage. I have a short script (ignore the package bit, I will refactor that away in due course): package Binsic PRINT "Hello World" and this class: package Binsic abstract…
adrianmcmenamin
  • 1,081
  • 1
  • 15
  • 44
1
vote
0 answers

evaluate a TypeAs expression

I'm trying to evaluate an expression to check if the output of the evaluation is null. My code looks like this: public class ObjectHelper { public static bool PathHasNull(object pParentObjectInstance, Expression>…
1
vote
1 answer

Excel: How can I retrieve a formula from the output of a cell and evaluate it?

For example: I have this formula in A1: 2*x+3*x and this formula in B1: =SUBSTITUTE($A$1,"x",E1) so my output in B1 is 2*1+3*1 Now, what I'd like is to have that operation evaluated so that it shows 5 instead of 2*1+3*1 I don't mind if it's on the…
Guss Ino
  • 21
  • 2
1
vote
1 answer

XSLT1.0+Schematron: translate instance text XPath values so they can be dynamically evaluated during an XSLT transformation

I'm using Schematron to validate instance XML documents inside a custom schema aware XML editor (note that Schematron validation is just an XSLT transformation). The instance may contain elements with a path in it's value (a simplified XPath…
predi
  • 5,528
  • 32
  • 60
0
votes
2 answers

When showing a formula I need to see the text horizontal to the value being used...in Excel

For example I have in one row pretax income and tax paid, then to the right I have a number representing them, say (c5)10 and (c7)13. Then below I have a ration "effective tax rate" and to the right the inputted equation (=c5/c7). When I click show…
0
votes
1 answer

Why doesn't my properly defined variable evaluate for length correctly (and subsequently work in the rest of my code)?

I employed the answer Marc B suggested and still got nothing in the variable when I echo'd it after the while loop, so I added a few checks to show status of things as they were processed through the code. When the if/else statement runs next, it…
lukas56z
  • 157
  • 12