WXDLLEXPORT bool
wxConvertOleToVariant(const VARIANTARG& oleVariant, wxVariant& variant)
{
+ bool ok = true;
if ( oleVariant.vt & VT_ARRAY )
{
variant.ClearList();
if ( FAILED(hr) )
return false;
- bool ok = true;
for ( int i = 0; i < cElements; i++ )
{
VARIANTARG& oleElement = pvdata[i];
}
}
- return true;
+ return ok;
}
/*
case VT_R8:
case VT_ERROR: // to avoid erroring on an error return from Excel
case VT_EMPTY:
+ case VT_DATE:
// no work for these types
break;