Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object in form tests T for existance then error
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Novell 5.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01106772
Message ID:
01106799
Views:
34
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
Previous
Reply
Map
View

Click here to load this message in the networking platform