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:
01106801
Views:
23
Put debugout thisform.oMainPane.name right after the test and remove all wait windows.

>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
Next
Reply
Map
View

Click here to load this message in the networking platform