Skip to content

Commit

Permalink
mib17: #162887# #162899# Changed handling of missing parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Bregas committed Jul 20, 2010
1 parent 1b86e85 commit b57b872
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion basic/source/runtime/step2.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,18 @@ void SbiRuntime::StepPARAM( UINT32 nOp1, UINT32 nOp2 )
while( iLoop >= nParamCount )
{
p = new SbxVariable();
p->PutErr( 448 ); // Wie in VB: Error-Code 448 (SbERR_NAMED_NOT_FOUND)

if( SbiRuntime::isVBAEnabled() &&
(t == SbxOBJECT || t == SbxSTRING) )
{
if( t == SbxOBJECT )
p->PutObject( NULL );
else
p->PutString( String() );
}
else
p->PutErr( 448 ); // Wie in VB: Error-Code 448 (SbERR_NAMED_NOT_FOUND)

refParams->Put( p, iLoop );
iLoop--;
}
Expand Down

0 comments on commit b57b872

Please sign in to comment.