2016-03-10 02:39:23 +00:00
|
|
|
package com.bytezone.diskbrowser.visicalc;
|
|
|
|
|
2016-03-12 22:38:03 +00:00
|
|
|
class IsError extends Function
|
2016-03-10 02:39:23 +00:00
|
|
|
{
|
2016-03-16 06:15:39 +00:00
|
|
|
Expression expression;
|
2016-03-10 02:39:23 +00:00
|
|
|
|
|
|
|
public IsError (Sheet parent, String text)
|
|
|
|
{
|
|
|
|
super (parent, text);
|
2016-03-16 06:15:39 +00:00
|
|
|
expression = new Expression (parent, functionText);
|
2016-03-10 02:39:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2016-03-16 06:15:39 +00:00
|
|
|
public void calculate ()
|
2016-03-10 02:39:23 +00:00
|
|
|
{
|
2016-03-16 19:32:25 +00:00
|
|
|
expression.calculate ();
|
|
|
|
// value = expression.getValue ();
|
|
|
|
valueType = expression.getValueType ();
|
|
|
|
value = isError () ? 1 : 0;
|
2016-03-10 02:39:23 +00:00
|
|
|
}
|
|
|
|
}
|