mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-06-29 21:29:36 +00:00
23 lines
395 B
Java
23 lines
395 B
Java
package com.bytezone.diskbrowser.visicalc;
|
|
|
|
class IsError extends Function
|
|
{
|
|
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;
|
|
}
|
|
} |