1 diff --git basic/source/runtime/methods.cxx basic/source/runtime/methods.cxx
2 index 72219ee..50dcf6b 100644
3 --- basic/source/runtime/methods.cxx
4 +++ basic/source/runtime/methods.cxx
5 @@ -108,6 +108,8 @@ using namespace com::sun::star::script;
9 +SbxVariable* getDefaultProp( SbxVariable* pRef );
11 #if defined (WIN) || defined (WNT) || defined (OS2)
12 #include <direct.h> // _getdcwd get current work directory, _chdrive
14 @@ -2426,7 +2429,18 @@ RTLFUNC(IsEmpty)
15 if ( rPar.Count() < 2 )
16 StarBASIC::Error( SbERR_BAD_ARGUMENT );
18 - rPar.Get( 0 )->PutBool( rPar.Get(1)->IsEmpty() );
20 + SbxVariable* pVar = NULL;
21 + if( SbiRuntime::isVBAEnabled() )
22 + pVar = getDefaultProp( rPar.Get(1) );
25 + pVar->Broadcast( SBX_HINT_DATAWANTED );
26 + rPar.Get( 0 )->PutBool( pVar->IsEmpty() );
29 + rPar.Get( 0 )->PutBool( rPar.Get(1)->IsEmpty() );