/******************** 関数ライブラリ ******************/
/********** (copyright © 2009 TenFeet Co. Ltd.) **********/
function CellValue(sname, irow, icol){
var cv=sname; var n=0;
if (irow!=0){cv+="!"+irow;}
if (icol!=0){cv+="_"+icol;}
if (getField(cv) != null) {
fcv = this.getField(cv);
if (fcv.value != ""){n=eval(fcv.value);}
}
return n;
}
function SetCellValue(sname, irow, icol, nvalue){
var cv=sname;
if (irow!=0){cv+="!"+irow;}
if (icol!=0){cv+="_"+icol;}
if (getField(cv) != null) {
var scv = this.getField(cv);
scv.value = nvalue;
}
}
function CellString(sname, irow, icol){
var cs=sname; var n=""
if (irow!=0){cs+="!"+irow;}
if (icol!=0){cs+="_"+icol;}
if (getField(cs) != null) {
fcs = this.getField(cs);
n+= fcs.value;
}
return n;
}
function SetCellString(sname, irow, icol, nvalue){
var cs=sname;
if (irow!=0){cs+="!"+irow;}
if (icol!=0){cs+="_"+icol;}
if (getField(cs) != null) {
var scs = this.getField(cs);
scs.value = nvalue;
}
}