public object SyntaxEditorEvaluateToObject_old(string commandString, bool hasReturn, bool hasUAReturn)// read.spss("", "" )
{
object returnValue = null;
dynamic dy = null;
try
{
//21Jun2013 Following if-else ladder /// earlier above commented one was in use
if (hasReturn)
{
dy = this._RServer.Evaluate(commandString).AsList();
if (dy != null)
returnValue = dy;
}
else if (hasUAReturn)
{
returnValue = this.EvaluateToUAReturn(commandString);
}
else//no return
{
string serr = "R.Net Error not imple";// this._RServer.GetErrorText();
if (serr != null && serr.Length > 0)
{ }
this._RServer.Evaluate(commandString);
}
}
catch (Exception e)
{
if (e != null)
{
}
if (commandString.Contains("readLines("))
{
returnValue = "EOF";// to show the end of file.
}
else if (false)
{
returnValue = "Error: " + "No Err impl, R.net";// this._RServer.GetErrorText();
}
}
return returnValue;
}