11.07.2015 Views

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

webMathematica User Guide 259MSPToExpressionMSPToExpression@varDinterprets the variable varMSPToExpression@var, fmtDuses the format fmt to interpret varMSPToExpression@ var, fmt, headDreturns the result wrapped in headMORE INFORMATION† MSPToExpression is the webMathematica version of ToExpression; it provides the same functionalityfor turning strings into Mathematica input, but it also carries out a security check.† You should always use MSPToExpression rather than ToExpression in your code because it providesadditional security.† The following exceptions can be thrown by MSPToExpression.MSPException@" ParseError "DMSPException@" SecurityError "DMSPException@" ValueError "Dif the value cannot be interpreted by Mathematicaif the value does not pass the security testif the value is not a string, this indicates a programmatic errorby the page authorMSPException@" NoValueError "D if the variable does not have a value, this indicates a program -matic error by the page authorMSPException@" VariableError "Dif the variable is not a Mathematica symbol, this indicates aprogrammatic error by the page authorEXAMPLESBasic Examples (1)You can simulate how the functions work by loading the package and setting the security content.In[1]:=In[2]:=Needs@"MSP`"DSetSecurity@D;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!