dmolony-DiskBrowser/src/com/bytezone/diskbrowser/visicalc/IsError.java

23 lines
395 B
Java
Raw Normal View History

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
{
boolean firstTime = true;
Cell cell;
public IsError (Sheet parent, String text)
{
super (parent, text);
}
@Override
public double getValue ()
{
if (firstTime)
{
firstTime = false;
cell = parent.getCell (new Address (functionText));
}
return cell == null ? 1 : 0;
}
}