mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-06-27 23:29:37 +00:00
23 lines
413 B
Java
23 lines
413 B
Java
package com.bytezone.diskbrowser.visicalc;
|
|
|
|
class IsError extends Function
|
|
{
|
|
Cell cell;
|
|
|
|
public IsError (Sheet parent, String text)
|
|
{
|
|
super (parent, text);
|
|
}
|
|
|
|
@Override
|
|
public Value calculate ()
|
|
{
|
|
if (cell == null)
|
|
cell = parent.getCell (functionText);
|
|
|
|
value = cell == null ? 1 : cell.isValueType (ValueType.ERROR) ? 1 : 0;
|
|
valueType = ValueType.VALUE;
|
|
|
|
return this;
|
|
}
|
|
} |