X++:
str strValue(int _row, int _col)
{
COM c = this.cell(_row, _col);
COMVariant cv = c.value();
switch (cv.variantType())
{
case COMVariantType::VT_BSTR: return cv.bStr();
case COMVariantType::VT_R8: return num2str(cv.double(),-1,0,0,0);
}
return '';
}