Hi Arthur,
That's a tough one, then. Some timer code removing the object before your REMOVEOBJECT line is executed? But this would be a very slight probability of happenning...
Could it be that you have REMOVEOBJECT twice in the code?
>Naomi,
>
>OK, tried that ... actually augmented my code with your suggested test as follows:
>
>
>* point a
>IF PEMSTATUS(THISFORM, 'oMainPane', 5) and ;
> vartype(thisform.oMainPane.name) = 'C'
>
> *point b
>
> thisform.removeobject( 'oMainPane' )
>
>ENDIF
>
>
>Now, let me provide further information: I have wait windows for debugging at points a and b and the object really IS there. After the error occurs and I suspend, I test again and the object is in fact NOT there.
>
>I didn't really expect that the addition of a test for type(objectname)="C" would have any effect, but I did include it just in case - because I recognize that I am not infallible - but it made no difference.
If it's not broken, fix it until it is.
My Blog